Skip to content

Ampr glob fast path - #6

Merged
danthespal merged 2 commits into
mainfrom
ampr-glob-fast-path
Oct 7, 2026
Merged

danthespal merged 2 commits into
mainfrom
ampr-glob-fast-path

Conversation

@danthespal

Copy link
Copy Markdown
Owner

No description provided.

Trace-derived include_from lists can hold tens of thousands of exact
paths. Matching each one as a regex for every file made planning
quadratic (60k patterns x 95k files for GT7 never finished).

Lists of 16+ patterns are now compiled once per list instance: patterns
without '*', '?' or '[' go into an ordinal hash set, where fnmatchcase is
plain equality, and only real globs stay regexes. Results are unchanged.
@danthespal
danthespal merged commit 3f901cb into main Oct 7, 2026
1 check 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