Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

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

by robin (Chaplain)
on Dec 02, 2005 at 12:37 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://513577]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (4)
As of 2024-04-19 03:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found