Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

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

by BrowserUk (Pope)
on Jan 12, 2013 at 13:55 UTC ( #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
Node Status?
node history
Node Type: note [id://1013040]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (6)
As of 2015-07-31 03:55 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 (274 votes), past polls