Repository navigation
Skip hidden directory trees during source and import discovery - #3170
Open
atilaneves wants to merge 3 commits into
Open
atilaneves wants to merge 3 commits into
atilaneves wants to merge 3 commits into
Conversation
|
✅ PR OK, no changes in deprecations or warnings Total deprecations: 0 Total warnings: 0 Build statistics: statistics (-before, +after)
-executable size=5688664 bin/dub
+executable size=5684568 bin/dub
rough build time=43sFull build output |
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch has not been deployed
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.
DUB currently descends into hidden directory trees during source/import discovery and filters their files afterwards. With an import root of
.this scans.git,.dub, generated files and nested worktrees even though none of those descendants can enter the result.Prune hidden entries before recursion. Explicitly listed hidden roots still work, and visible symlinks, glob matching, depth-first traversal and errors from visible directories retain their behavior.
In five alternating runs of otherwise identical LDC release builds of Reggae with DUB 1.42.0 (the production change backported for comparison), fresh metadata queries for Snakebite's six configurations fell from a median 2.825 s to 0.698 s. Ranges were 2.789–3.617 s and 0.689–1.200 s. Every run succeeded; complete metadata, Ninja files and compilation databases were byte-identical. A separate trace confirmed zero directory reads inside
.worktrees. Concurrent local builds contributed timing noise.All 59 library unittest modules pass. Regression coverage includes an unreadable excluded hidden tree (which failed before this change), explicit hidden roots and nested hidden descendants, visible symlinks and permission errors, D/C/header patterns, and string imports. The inherited DIP1000 build check is blocked by existing dependency/configy scope errors.