Skip to content

Skip path resolution without ignored directories - #374

Open
tamird wants to merge 1 commit into
Byron:mainfrom
tamird:perf-skip-empty-ignore-realpath
Open

Skip path resolution without ignored directories#374
tamird wants to merge 1 commit into
Byron:mainfrom
tamird:perf-skip-empty-ignore-realpath

Conversation

@tamird

@tamird tamird commented Aug 17, 2026

Copy link
Copy Markdown
Contributor

Prepared macOS and Windows aggregation roots resolve every child path even when the ignored-directory list is empty. Path resolution checks for symbolic links and therefore adds one filesystem lookup per root.

Share the existing traversal predicate with both aggregation input paths. Its empty-list short circuit skips path resolution, and prepared roots use borrowed filenames without allocating paths.

This reduces duplication and fixes a tiny missed optimization from f9b6200.

Prepared macOS and Windows aggregation roots resolve every child path
even when the ignored-directory list is empty. Path resolution checks
for symbolic links and therefore adds one filesystem lookup per root.

Share the existing traversal predicate with both aggregation input
paths. Its empty-list short circuit skips path resolution, and prepared
roots use borrowed filenames without allocating paths.
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