Repository navigation
perf: skip manifests with no live entries - #3708
Merged
Merged
Conversation
Avoid opening manifests whose list counts prove there are no added or existing files. Cover normal and copy-on-write planning with a removed dead-only manifest.
DerGut
marked this pull request as ready for review
November 17, 2026 17:26
This was referenced Nov 18, 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.
Which issue does this PR close?
Avoid opening manifests whose list counts prove there are no added or existing files. Cover normal and copy-on-write planning with a removed dead-only manifest.
Which issue does this PR close?
While working on #1466 I noticed a mismatch between Java-reported scan metrics and Rust-reported ones. This PR aligns the Rust planner behavior with Java by saving some IO.
What changes are included in this PR?
A scan is now skipping delete manifest reads (as Java does) if they don't apply to any live files.
Are these changes tested?
Yes, scan reports are matching.
AI Disclosure
AI found this and I used AI to generate the fix.