|Next||The Perl Hardware Store||DC.pm Version||39|
Memoizing is a really useful tool to have in your toolbox
Program too slow? Try sprinkling in a little memoization. It's cheap and easy.
Need to profile? Try memoizing. If it works, rewrite the function you memoized; if not, try another function.
Worried about recursion inefficiencies? Memoization is often a cheap and effective alternative to rewriting in iterative style.
Memoize to a permanent database and speed up your function forever.
Memoize slow functions like gethostbyname.
|Next||Copyright © 2003 M. J. Dominus|