Lines Matching defs:memoize

9 # write to mjd-perl-memoize+@plover.com for a license.
22 # Usage memoize(functionname/ref,
32 @EXPORT = qw(memoize);
46 sub memoize {
53 croak "Usage: memoize 'functionname'|coderef {OPTIONS}";
179 carp("TIE option to memoize() is deprecated; use HASH instead")
366 memoize('slow_function');
372 memoize(function, options...);
393 If you call the function again with the same arguments, C<memoize>
418 This function is a good candidate for memoization. If you memoize the
445 memoize('fib');
470 This module exports exactly one function, C<memoize>. The rest of the
475 memoize(function)
477 where C<function> is the name of the function you want to memoize, or
478 a reference to it. C<memoize> returns a reference to the new,
483 If C<function> was the name of a function, then C<memoize> hides the
489 There are some optional options you can pass to C<memoize> to change
490 the way it behaves a little. To supply options, invoke C<memoize>
493 memoize(function, NORMALIZER => function,
504 If you supply a function name with C<INSTALL>, memoize will install
508 memoize('fib', INSTALL => 'fastfib')
514 To prevent C<memoize> from installing the memoized version anywhere, use
565 memoize('f', NORMALIZER => 'normalize_f');
567 C<memoize> knows that if the normalized version of the arguments is
683 memoize 'function', SCALAR_CACHE => [HASH => \%cache];
700 memoize ... [TIE, PACKAGE, ARGS...]
708 memoize ... [HASH => \%cache];
745 MERGE> will make C<memoize> use the same cache for scalar and list
758 memoize 'myfunc',
824 Do not memoize a function whose behavior depends on program
841 Do not memoize a function with side effects.
852 that. If you memoize this function, you will get the result you
859 Do not memoize a function that returns a data structure that is
880 If you memoize C<getusers> here, it will work right exactly once. The
901 Do not memoize a very simple function.
927 memoize 'function', SCALAR_CACHE => [HASH => \%cache];
937 memoize 'function', SCALAR_CACHE => [HASH => \%cache];
948 memoize the function, and stored back at the time you unmemoize the
952 memoize 'function', SCALAR_CACHE => [HASH => \%cache];
955 memoize 'function', SCALAR_CACHE => [HASH => \%cache];
992 C<Memoize>, send an empty note to C<mjd-perl-memoize-request@plover.com>.
996 Mark-Jason Dominus (C<mjd-perl-memoize+@plover.com>), Plover Systems co.
1012 empty message to C<mjd-perl-memoize-request@plover.com>. This mailing