Sophie

Sophie

distrib > Mageia > 3 > i586 > by-pkgid > ff38980e61657e6724fcc853fb2be163

perl-Memoize-1.30.0-6.mga3.noarch.rpm

Description:

`Memoizing' a function makes it faster by trading space for time. It does
this by caching the return values of the function in a table. If you call
the function again with the same arguments, 'memoize' jumps in and gives
you the value out of the table, instead of letting the function compute the
value all over again.

Here is an extreme example. Consider the Fibonacci sequence, defined by the
following function:


sub fib {
my $n = shift;
return $n if $n < 2;
fib($n-1) + fib($n-2);
}

Sources packages:

Other version of this rpm: