This is the memoize Reference Manual, generated automatically by Declt version 4.0 beta 2 "William Riker" on Sun Dec 15 07:02:01 2024 GMT+0.
The main system appears first, followed by any subsystem dependency.
Files are sorted by type and then listed depth-first from the systems components trees.
memoize/memoize.lisp
memoize
(system).
clear-memoized-function
(function).
clear-memoized-functions
(function).
def-memoized-function
(macro).
function-memoized-p
(function).
memoize-function
(function).
memoized-labels
(macro).
unmemoize-function
(function).
unmemoize-functions
(function).
*memoized-functions*
(special variable).
make-memo
(function).
Packages are listed by definition order.
org.tfeb.hax.memoize
common-lisp
.
clear-memoized-function
(function).
clear-memoized-functions
(function).
def-memoized-function
(macro).
function-memoized-p
(function).
memoize-function
(function).
memoized-labels
(macro).
unmemoize-function
(function).
unmemoize-functions
(function).
*memoized-functions*
(special variable).
make-memo
(function).
Definitions are sorted by export status, category, package, and then by lexicographic order.
Define a memoized function.
FNSPEC is either the name of the function, or a list suitable as an arglist
for MEMOIZE-FUNCTION. ARGS & BOD are passed off to DEFUN.
This will declare FNSPEC NOTINLINE, which may be necessary to prevent good compilers optimizing away self calls & stuff like that.
A version of LABELS that memoizes the local functions. See MEMOIZE-FUNCTION and DEF-MEMOIZED-FUNCTION. If code that uses this is compiled (either by COMPILE or COMPILE-FILE, then the table of memoized results will be unique, if interpreted then a new table may be generated for each use. The function ‘names’ are generalised in the same way as for DEF-MEMOIZED-FUNCTION.
Clear memoized results for FN-NAME
Clear memoized results for all functions
Is FN-NAME memoized?
Memoize FN-NAME, a symbol, causing its results to be stashed.
KEY is a function which is given the arglist of FN-NAME, and should return
a key to hash on for memoizing. TEST is a function which the test for the
ashtable.
See Norvig P269-275.
Note this function may not work on self-recursive functions because the compiler can optimize away self-calls in various ways. DEF-MEMOIZED-FUNCTION should work for those cases as it is careful to ensure the function can not be inlined like this.
Remove memoization for FN-NAME
Unmemoize all functions
Jump to: | C D F M U |
---|
Jump to: | C D F M U |
---|
Jump to: | *
S |
---|
Index Entry | Section | ||
---|---|---|---|
| |||
* | |||
*memoized-functions* : | Private special variables | ||
| |||
S | |||
Special Variable, *memoized-functions* : | Private special variables | ||
|
Jump to: | *
S |
---|
Jump to: | F M O P S |
---|
Jump to: | F M O P S |
---|