Skip to content

perf(fmt): compact cache options in place - #347

Merged
chenjiahan merged 1 commit into
mainfrom
chenjiahan/perf-fmt-cache-compaction
Aug 13, 2026
Merged

perf(fmt): compact cache options in place#347
chenjiahan merged 1 commit into
mainfrom
chenjiahan/perf-fmt-cache-compaction

Conversation

@chenjiahan

Copy link
Copy Markdown
Member

This PR prevents formatter cache saves from exceeding JavaScript's argument limit when the options table grows large. Unused option hashes are now compacted in place, which also avoids allocating replacement options and usage-count arrays.

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying rstack-cli with  Cloudflare Pages  Cloudflare Pages

Latest commit: 7815d6c
Status: ✅  Deploy successful!
Preview URL: https://681c3a33.rstack-cli.pages.dev
Branch Preview URL: https://chenjiahan-perf-fmt-cache-co.rstack-cli.pages.dev

View logs

@chenjiahan
chenjiahan merged commit 4b671d5 into main Aug 13, 2026
7 of 8 checks passed
@chenjiahan
chenjiahan deleted the chenjiahan/perf-fmt-cache-compaction branch August 13, 2026 06:48
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