Skip to content

perf(fmt): filter ignored files during traversal - #215

Merged
chenjiahan merged 1 commit into
mainfrom
chenjiahan/perf-fmt-ignore-during-traversal
Aug 6, 2026
Merged

perf(fmt): filter ignored files during traversal#215
chenjiahan merged 1 commit into
mainfrom
chenjiahan/perf-fmt-ignore-during-traversal

Conversation

@chenjiahan

Copy link
Copy Markdown
Member

Summary

This reduces rs fmt discovery work in repositories whose formatter config ignores large file trees.

Configuration and CLI ignore rules now filter files during traversal while the final pass remains for explicit input semantics. On Rspack, median discovery time dropped from about 399 ms to 198 ms while producing the same 4,550 file requests.

@chenjiahan
chenjiahan merged commit a5dbe91 into main Aug 6, 2026
3 checks passed
@chenjiahan
chenjiahan deleted the chenjiahan/perf-fmt-ignore-during-traversal branch August 6, 2026 04:55
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