Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Speed/Efficiency tweaks for a fannkuch benchmark script?

by robin (Chaplain)
on Dec 02, 2005 at 12:37 UTC ( #513577=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
      substr( $q, 0, $k ) = reverse substr( $q, 0, $k );
    
  2. or download this
      $q = reverse(substr($q, 0, $k)) . substr($q, $k);
    
  3. or download this
    sub fannkuch {
        use bytes;    # This makes it fractionally faster
    ...
        } while $index--;
        $maxflips;  # faster than an explicit return
    }
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (5)
As of 2014-12-27 13:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

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





    Results (177 votes), past polls