You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor(state_store): per-component handle for fn-memo I/O (#1990)
- Introduce `FnMemoAccessor`, owning the read / write / retain operations
for `FunctionMemoization` entries scoped to a single component path.
- Build it once per `ComponentProcessorContext` and return it by
reference, so any future per-build state on the accessor (e.g. caching
or instrumentation) persists across the many fn-memo lookups within a
single component's processing phase, rather than being re-created per
call.
- Inline the corresponding `AppStore::{read,write,retain}_fn_memo*`
methods into the accessor; they had no remaining callers outside it.
Shrinks `AppStore`'s public surface by ~50 lines.
- Update the three engine call sites (cache-probe read in
`read_fn_call_memo_with_txn`, post-execute write in
`write_fn_call_memo`, commit-time retain GC in `Committer`) to route
through `comp_ctx.fn_memo_accessor()`.
No behavior change.
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
0 commit comments