Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

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

by BrowserUk (Patriarch)
on May 05, 2013 at 13:21 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1032124]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (5)
As of 2024-03-28 13:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found