Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
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?
[Discipulus]: have you all a nice and relaxing weekend!
NodeReaper on the other hand, I've already bought the hammer....

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (11)
As of 2017-07-28 12:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I came, I saw, I ...
























    Results (428 votes). Check out past polls.