Name : perl-Memoize
| |
Version : 1.160.0
| Vendor : Mageia_Org
|
Release : 1.mga9
| Date : 2023-02-03 20:44:12
|
Group : Development/Perl
| Source RPM : perl-Memoize-1.160.0-1.mga9.src.rpm
|
Size : 0.10 MB
| |
Packager : tv < tv>
| |
Summary : Automatically cache results of functions
|
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); }
|
RPM found in directory: /vol/rzm3/linux-mageia/distrib/9/x86_64/media/core/release |