Repository navigation
perf: reuse source-entry metadata and compiled exclusions (#100) - #107
Merged
Merged
Conversation
TristanKruse
marked this pull request as ready for review
November 24, 2026 12:25
This was referenced Nov 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Closes #100. First implementation from the research-issue triage: #100 → #101 → #102 → #106 → #104 → #103 → #105.
Find/callback traversal work with a private pruned iterative walker: one childlstat, child-component identifiers under the canonical root, compiled glob decisions and exact-basename lookup, and one final source-list sort.TechnicalError, rather than inheritingFind's silent directory-listing skip. Excluded trees are not opened. This behavior is documented and tested.ArchUnit family alignment
No new public fluent API or mandatory dependency. Ruby-specific filesystem work remains in extraction; common projections/assertions and existing Checkable behavior stay unchanged.
Evidence and regression coverage
benchmark/study/discovery-windows.json.Verification
78653585f47c72a487687e6df210149c8646e643; full timed samples and post-GC retained-memory data are committed inbenchmark/study/discovery-ci.json.Hosted 10k cold medians: Linux 1.750s → 1.078s, Windows 5.922s → 3.688s, with substantially lower allocations and essentially unchanged post-GC heap growth. Memory/latency tradeoff: Linux peak RSS is lower at 10k but about 10% higher at 5k; one small excluded-tree warm lookup rises from 0.117ms to 0.902ms (still below 1ms). These GC/load-sensitive observations are retained explicitly, not described as uniform memory or warm-latency improvements. See the benchmark guide and raw samples.
The initial research job exposed a stale local path-gem version in its isolated lock; both local-version entries are synchronized without changing any pinned research dependency, and a version-alignment regression test was added. Frozen lock enforcement remains enabled.
The synthesized UNC test proves path construction without opening a network share; it is not a claim that an actual UNC share was available on this host. No release is performed; #100 closes only after merge.