memoize: change MEMO[ to push a quotation.
parent
47bb96d194
commit
4e5c5b34f5
|
@ -37,6 +37,6 @@ unit-test
|
||||||
|
|
||||||
[ t ] [
|
[ t ] [
|
||||||
{ 1/8 1/8 1/8 1/8 1/16 1/16 1/16 }
|
{ 1/8 1/8 1/8 1/8 1/16 1/16 1/16 }
|
||||||
[ [ MEMO[ seconds sleep ] ] each ] benchmark
|
[ MEMO[ seconds sleep ] each ] benchmark
|
||||||
0.18e9 0.25e9 between?
|
0.18e9 0.25e9 between?
|
||||||
] unit-test
|
] unit-test
|
||||||
|
|
|
@ -83,4 +83,4 @@ M: memoized reset-word
|
||||||
|
|
||||||
\ invalidate-memoized t "no-compile" set-word-prop
|
\ invalidate-memoized t "no-compile" set-word-prop
|
||||||
|
|
||||||
SYNTAX: MEMO[ parse-quotation dup infer memoize-quot append ;
|
SYNTAX: MEMO[ parse-quotation dup infer memoize-quot suffix! ;
|
||||||
|
|
Loading…
Reference in New Issue