Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Reminder to self: must use Memoize more often!

by BrowserUk (Patriarch)
on Jan 12, 2013 at 13:55 UTC ( [id://1013040]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my @fib4_cache;
    sub fib4 {
    ...
    fib3 2073455/s 2338415%     843%       --     -19%
    fib4 2551114/s 2877136%    1060%      23%       --
    
  2. or download this
    
    cmpthese(-1, {
    ...
    fib2  223254/s  255377%       --     -89%     -91%
    fib3 2071504/s 2370384%     828%       --     -20%
    fib4 2579867/s 2952119%    1056%      25%       --
    
  3. or download this
    my @fib5_cache;
    sub fib5 {
    ...
    fib4 2478824/s 2785096%    1035%      23%       --      -2%
    fib5 2537045/s 2850512%    1061%      25%       2%       --
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (5)
As of 2024-04-25 15:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found