Skip to content

perf(js-runtime): replace unbounded HashMap with LRU cache for scripts#1770

Merged
shiyasmohd merged 1 commit intomainfrom
shiyasmohd/js-runtime-lru
Feb 16, 2026
Merged

perf(js-runtime): replace unbounded HashMap with LRU cache for scripts#1770
shiyasmohd merged 1 commit intomainfrom
shiyasmohd/js-runtime-lru

Conversation

@shiyasmohd
Copy link
Contributor

  • Replace unbounded HashMap script cache with an LRU cache (capacity 1000) in the V8 Isolate, preventing unbounded memory growth when many distinct scripts are compiled.
  • Alphabetize Cargo.toml dependencies

@shiyasmohd shiyasmohd requested a review from leoyvens February 16, 2026 05:58
@shiyasmohd shiyasmohd self-assigned this Feb 16, 2026
@shiyasmohd shiyasmohd force-pushed the shiyasmohd/js-runtime-lru branch from 818ff0f to a48ec4f Compare February 16, 2026 06:25
@shiyasmohd shiyasmohd merged commit a7c8af8 into main Feb 16, 2026
13 of 14 checks passed
@shiyasmohd shiyasmohd deleted the shiyasmohd/js-runtime-lru branch February 16, 2026 11:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants