Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
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?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (13)
As of 2015-07-07 16:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (91 votes), past polls