Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re^3: Efficient bit-twiddling in Perl.

by kennethk (Monsignor)
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?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (6)
As of 2014-12-25 13:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (160 votes), past polls