Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^3: Efficient bit-twiddling in Perl.

by kennethk (Abbot)
on Feb 28, 2013 at 19:39 UTC ( #1021102=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    Generation took: 0.218580069542 seconds
     Shift&and took: 0.000000471000 seconds
       Lookup  took: 0.000000395095 seconds
    
  2. or download this
    my $start = time;
    for (1..100) {
    my @lookup; $#lookup = 0x3ffff;
    ...
        for 0 .. 0x3ffff;
    }
    printf "Generation took: %.12f seconds\n", ( time() - $start )/100;
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1021102]
help
Chatterbox?
marioroy concurrent Tie::File among many workers is possible via MCE::Shared.
marioroy Ditto for DB_File, BerkeleyDB, etc. ;-)

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (2)
As of 2017-08-18 07:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Who is your favorite scientist and why?



























    Results (296 votes). Check out past polls.

    Notices?