Skip to content

slight performance tweak - #21

Merged
boyter merged 1 commit into
masterfrom
performance_tweak
Mar 3, 2026
Merged

slight performance tweak#21
boyter merged 1 commit into
masterfrom
performance_tweak

Conversation

@boyter

@boyter boyter commented Mar 3, 2026

Copy link
Copy Markdown
Owner

No description provided.

@boyter
boyter requested a review from Copilot March 3, 2026 00:03
@pr-insights pr-insights Bot added M/complexity Normal or medium complexity S/size Small change labels Mar 3, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR applies a small performance optimization in FileWalker.walkDirectoryRecursive by avoiding redundant .gitignore evaluations for the same path during file/directory traversal.

Changes:

  • Reuse the MatchIsDir(...) result to determine ignore/include via Match.Ignore() instead of calling GitIgnore.Ignore(path) again.
  • Apply the same optimization across gitignore, ignore-file, custom-ignore, and module-ignore checks for both files and directories.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@boyter
boyter merged commit b0f7f6a into master Mar 3, 2026
6 checks passed
@boyter
boyter deleted the performance_tweak branch March 3, 2026 00:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

M/complexity Normal or medium complexity S/size Small change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants