Skip to main content

Module eval_cache

Module eval_cache 

Source
Expand description

Typed border for the evaluation cache.

cppnix has eval-cache-v5.sqlite; sui has sui-cache-eval (BLAKE3-keyed memoization). Both serve the same purpose: avoid re-evaluating expressions whose dependencies haven’t changed. This module names the contract.

Structs§

CacheKeyInputs
Inputs to a cache-key derivation. When key_input == ExprPlusInputs, all fields contribute; for CanonicalAst only expr does.
EvalCacheFormat

Enums§

EvalCacheBackend
EvalCacheHash
EvalCacheKeyInput

Constants§

CANONICAL_EVAL_CACHE_LISP

Functions§

derive_cache_key
Derive a cache key for an evaluation. M3.0 uses hex of sha256 (or blake3) of a canonical text serialisation of the inputs. The resulting key is what the cache database indexes by.
load_canonical
Compile every authored eval-cache format.