Skip to content

perf(fmt): prune ignored directories during discovery - #174

Merged
chenjiahan merged 1 commit into
mainfrom
chenjiahan/feat-fmt-ignore-directory-pruning
Aug 4, 2026
Merged

perf(fmt): prune ignored directories during discovery#174
chenjiahan merged 1 commit into
mainfrom
chenjiahan/feat-fmt-ignore-directory-pruning

Conversation

@chenjiahan

Copy link
Copy Markdown
Member

Summary

rs fmt currently discovers every file before applying configured and CLI ignore rules, making large ignored trees unnecessarily expensive. This PR applies the composed ignore matcher during directory traversal while retaining final filtering for explicit files and Gitignore negation semantics. In a synthetic 8,000-file ignored tree, discovery dropped from approximately 35.3 ms to 3.5 ms.

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying rstack-cli with  Cloudflare Pages  Cloudflare Pages

Latest commit: 7ee0d93
Status: ✅  Deploy successful!
Preview URL: https://3b98b790.rstack-cli.pages.dev
Branch Preview URL: https://chenjiahan-feat-fmt-ignore-d.rstack-cli.pages.dev

View logs

@chenjiahan
chenjiahan merged commit d569365 into main Aug 4, 2026
4 checks passed
@chenjiahan
chenjiahan deleted the chenjiahan/feat-fmt-ignore-directory-pruning branch August 4, 2026 09:35
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