add invalidate-memoized to extra/memoize so that specific entries can be removed from the memoization cache. This is used in cached-cairo ungraft* to ensure that textures re-rendered.
parent
87b6cb5d40
commit
e1669916f6
|
@ -52,3 +52,6 @@ M: memoized definition "memo-quot" word-prop ;
|
|||
|
||||
: reset-memoized ( word -- )
|
||||
"memoize" word-prop clear-assoc ;
|
||||
|
||||
: invalidate-memoized ! ( inputs... word )
|
||||
[ #in packer call ] [ "memoize" word-prop delete-at ] bi ;
|
||||
|
|
Loading…
Reference in New Issue