Skip to content

perf(fmt): reuse resolved options - #338

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

perf(fmt): reuse resolved options#338
chenjiahan merged 1 commit into
mainfrom
chenjiahan/perf-fmt-options-cache

Conversation

@chenjiahan

Copy link
Copy Markdown
Member

Repeated files that match the same formatter overrides currently allocate equivalent option objects, preventing downstream identity-based caches from reusing their work.

This PR memoizes ordered override combinations and plugin-resolved options so files with the same effective configuration share object identity. It preserves declaration-order merge semantics and adds identity-based regression coverage.

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying rstack-cli with  Cloudflare Pages  Cloudflare Pages

Latest commit: b779ae1
Status: ✅  Deploy successful!
Preview URL: https://7c4f7692.rstack-cli.pages.dev
Branch Preview URL: https://chenjiahan-perf-fmt-options.rstack-cli.pages.dev

View logs

@chenjiahan
chenjiahan enabled auto-merge (squash) August 13, 2026 02:36
@chenjiahan
chenjiahan merged commit 8535fc2 into main Aug 13, 2026
5 checks passed
@chenjiahan
chenjiahan deleted the chenjiahan/perf-fmt-options-cache branch August 13, 2026 02:36
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