Skip to content

Skip dependency and VCS trees during source traversal - #62

Merged
harshitethic merged 3 commits into
mainfrom
perf/prune-index-walk
Nov 5, 2026
Merged

harshitethic merged 3 commits into
mainfrom
perf/prune-index-walk

Conversation

@harshitethic

@harshitethic harshitethic commented Nov 5, 2026 •

Copy link
Copy Markdown
Owner

Every search and Ask AI request walked the contents of ignored directories before discarding their entries. A scan of a repository with a large node_modules or .git tree therefore paid for directory reads even when it returned only one source file.

Prune ignored directory names before descent. The regression records which paths receive file checks against a temporary tree with a mixed-case Node_Modules folder. It failed against main and passed with the change. The existing repository safety tests also passed. Storage accounting continues to use its own walker.

@harshitethic
harshitethic merged commit 0d4e17a into main Nov 5, 2026
9 checks passed
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