Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Counter - number of tags per interval (75%+ reduction in runtime)

by BrowserUk (Pope)
on May 05, 2013 at 13:21 UTC ( #1032124=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
        my( $id ) = $bitsIn =~ m[^#(.)\s*$] or die 'Bits ID missing';
    
        my $bits = chr(0); $bits x= 75e6;
        $bitsIn =~ m[(\d+)\s+(\d+)] and vec( $bits, $1, 1 ) = $2
            until eof( BITS ) or ( $bitsIn = <BITS> ) =~ m[^#];
    
  2. or download this
        my $range = <RANGES>;
        until( eof( RANGES ) ) {
    ...
            print "$id ($1 .. $2) : $count";
            $range = <RANGES>
        }
    
  3. or download this
    #! perl -slw
    use strict;
    ...
    }
    close BITS;
    close RAANGES
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1032124]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (5)
As of 2014-07-11 21:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (235 votes), past polls