Memoization (cacheing) design pattern.
When functions are executed using ce_memoize:apply/4
,
their results are saved for future reference (subsequent calls to
apply/4
) in an ets table. This can be useful for values
which are slow to initially calculate and rarely change thereafter,
and where speed is desired for every access.
apply/4 | Applies a function, memoizing (cacheing) the results. |
flush/1 | Flushes the given memoization table. |
start/1 | Starts the memoization service. |
apply(Name::memo_name(), Module::module(), Function::function(), Args::args()) -> term()
Applies a function, memoizing (cacheing) the results.
flush(Name::memo_name()) -> ok
Flushes the given memoization table.
start(Name::memo_name()) -> ok
Starts the memoization service.
Generated by EDoc, Feb 18 2008, 06:47:58.