This is the memoize Reference Manual, generated automatically by Declt version 4.0 beta 2 "William Riker" on Mon Aug 15 05:21:29 2022 GMT+0.
Next: Files, Previous: The memoize Reference Manual, Up: The memoize Reference Manual [Contents][Index]
The main system appears first, followed by any subsystem dependency.
Next: Packages, Previous: Systems, Up: The memoize Reference Manual [Contents][Index]
Files are sorted by type and then listed depth-first from the systems components trees.
Next: memoize/memoize.lisp, Previous: Lisp, Up: Lisp [Contents][Index]
memoize (system).
Previous: memoize/memoize.asd, Up: Lisp [Contents][Index]
memoize (system).
Next: Definitions, Previous: Files, Up: The memoize Reference Manual [Contents][Index]
Packages are listed by definition order.
common-lisp.
Next: Indexes, Previous: Packages, Up: The memoize Reference Manual [Contents][Index]
Definitions are sorted by export status, category, package, and then by lexicographic order.
Next: Internals, Previous: Definitions, Up: Definitions [Contents][Index]
Next: Ordinary functions, Previous: Public Interface, Up: Public Interface [Contents][Index]
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.
Previous: Macros, Up: Public Interface [Contents][Index]
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
Previous: Public Interface, Up: Definitions [Contents][Index]
Next: Ordinary functions, Previous: Internals, Up: Internals [Contents][Index]
Previous: Special variables, Up: Internals [Contents][Index]
Previous: Definitions, Up: The memoize Reference Manual [Contents][Index]
Jump to: | C D F M U |
---|
Jump to: | C D F M U |
---|
Next: Data types, Previous: Functions, Up: Indexes [Contents][Index]
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 |
---|