mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-27 05:10:36 +00:00
01096fa35b
functions by caching return values.
12 lines
454 B
Plaintext
12 lines
454 B
Plaintext
`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.
|
|
|
|
Author: Mark-Jason Dominus <mjd-perl-memoize+@plover.com>
|
|
WWW: http://search.cpan.org/search?dist=Memoize
|
|
|
|
-Anton
|
|
<tobez@FreeBSD.org>
|