Memoize
*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.
INSTALLATION
This is a Perl module distribution. It should be installed with
whichever tool you use to manage your installation of Perl, e.g. any of
cpanm .
cpan .
cpanp -i .
Consult http://www.cpan.org/modules/INSTALL.html for further
instruction. Should you wish to install this module manually, the
procedure is
perl Makefile.PL
make
make test
make install
COPYRIGHT AND LICENSE
This software is copyright (c) 2012 by Mark Jason Dominus.
This is free software; you can redistribute it and/or modify it under
the same terms as the Perl 5 programming language system itself.