Repository navigation
docs(design): evaluate Repository pattern for file list (#2135) - #4211
Merged
Merged
Conversation
Recommends rejecting the queryable repository for now because the nine distinct flist query patterns in transfer/engine are dominated by NDX lookup and contiguous-range iteration; both are O(1) on Vec<FileEntry> and gain nothing from trait indirection. The asked-for find_by_path matches no existing call site and sort_by_inode breaks NDX stability. Reopen after the #4166 arena prerequisites land.
oferchen
added a commit
that referenced
this pull request
May 18, 2026
Recommends rejecting the queryable repository for now because the nine distinct flist query patterns in transfer/engine are dominated by NDX lookup and contiguous-range iteration; both are O(1) on Vec<FileEntry> and gain nothing from trait indirection. The asked-for find_by_path matches no existing call site and sort_by_inode breaks NDX stability. Reopen after the #4166 arena prerequisites land.
oferchen
added a commit
that referenced
this pull request
May 18, 2026
Recommends rejecting the queryable repository for now because the nine distinct flist query patterns in transfer/engine are dominated by NDX lookup and contiguous-range iteration; both are O(1) on Vec<FileEntry> and gain nothing from trait indirection. The asked-for find_by_path matches no existing call site and sort_by_inode breaks NDX stability. Reopen after the #4166 arena prerequisites land.
oferchen
added a commit
that referenced
this pull request
Aug 24, 2026
Recommends rejecting the queryable repository for now because the nine distinct flist query patterns in transfer/engine are dominated by NDX lookup and contiguous-range iteration; both are O(1) on Vec<FileEntry> and gain nothing from trait indirection. The asked-for find_by_path matches no existing call site and sort_by_inode breaks NDX stability. Reopen after the #4166 arena prerequisites land.
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
Vec<FileEntry>+Arc<Vec<FileEntry>>) in aFileListRepositorytrait with queryable accessors.crates/transfer/andcrates/engine/consumers.Vecand gain nothing from trait indirection; the asked-forfind_by_pathmatches no existing call site;sort_by_inodewould break NDX stability.Test plan
cargo fmt --all(no diff)file:linecitations verified against currentmaster