Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much

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?

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (6)
As of 2016-10-22 18:18 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (297 votes). Check out past polls.