Skip to content

perf(vm): explore bounded compiled-code reuse - #84

Closed
steipete wants to merge 1 commit into
mainfrom
claude/w97-vm-bounded-compile-cache
Closed

steipete wants to merge 1 commit into
mainfrom
claude/w97-vm-bounded-compile-cache

Conversation

@steipete

@steipete steipete commented Oct 3, 2026 •

Copy link
Copy Markdown

Superseded by #85, which contains the adaptive admission design and the accepted performance trade-off.

This closed, unmerged experiment remains at 43b776326792abc8f24af82218892b141a3dc7b1. Its bounded immutable-bytecode cache improved large node:vm graphs, but did not meet the original Node-parity target. The replacement PR documents the later 1,750-source admission threshold, small-graph cost, consumer validation, and engine follow-up work. No code was merged through this PR.

Cache immutable source and serialized program bytecode per VM, with weak decoded-code and importer references. Promote repeated sources to full function bytecode, retain fresh execution state, and evict by a configurable byte budget to avoid JSC shared-cache churn on large module graphs.
@steipete steipete changed the title perf(vm): bound repeated compilation with a bytecode LRU perf(vm): explore bounded compiled-code reuse Oct 3, 2026
@steipete steipete closed this Oct 3, 2026
@steipete steipete changed the title perf(vm): explore bounded compiled-code reuse perf(vm): add an adaptive bounded compilation cache Oct 3, 2026
@steipete steipete changed the title perf(vm): add an adaptive bounded compilation cache perf(vm): explore bounded compiled-code reuse Oct 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant