Skip to content

perf(fmt): avoid relative path resolution under root - #183

Merged
chenjiahan merged 1 commit into
mainfrom
chenjiahan/perf-fmt-ignore-path
Aug 5, 2026
Merged

perf(fmt): avoid relative path resolution under root#183
chenjiahan merged 1 commit into
mainfrom
chenjiahan/perf-fmt-ignore-path

Conversation

@chenjiahan

Copy link
Copy Markdown
Member

This follow-up reduces ignore-matcher overhead for the normalized absolute paths produced during formatting. Paths inside the matcher root now use prefix slicing, while paths outside it still fall back to path.relative() so parent-relative patterns remain supported.

Related Links

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying rstack-cli with  Cloudflare Pages  Cloudflare Pages

Latest commit: f80bcb1
Status: ✅  Deploy successful!
Preview URL: https://9a9645fc.rstack-cli.pages.dev
Branch Preview URL: https://chenjiahan-perf-fmt-ignore-p.rstack-cli.pages.dev

View logs

@chenjiahan
chenjiahan merged commit 1024d5c into main Aug 5, 2026
4 checks passed
@chenjiahan
chenjiahan deleted the chenjiahan/perf-fmt-ignore-path branch August 5, 2026 02:53
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