Repository navigation
fix(store): bound what reading each object reads ahead - #171
Open
PiquelChips wants to merge 1 commit into
Open
PiquelChips wants to merge 1 commit into
PiquelChips wants to merge 1 commit into
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the
|
`read_each` read a whole chunk, up to 4096 objects, before handing any to its callback, sized from the previous chunk: thousands of small objects followed by large blobs could load gigabytes before a snapshot part saw it was full. And one object it couldn't read failed the whole chunk, even when the part filled before reaching it, losing the valid part. The cores reading a chunk now share a byte count and stop once it reaches the target, the chunk handing over objects up to the first part cut short, and each object's read error is kept until the callback reaches it.
PiquelChips
force-pushed
the
fix/bound-what-reading-each-object-reads
branch
from
November 22, 2026 20:22
50c363b to
81576a0
Compare
PiquelChips
force-pushed
the
fix/read-only-the-log-entries-a
branch
from
November 22, 2026 20:22
d3154c5 to
29b19cc
Compare
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.
read_eachread a whole chunk, up to 4096 objects, before handing any of them to its callback, and sized each chunk from the previous one. So thousands of small objects followed by large blobs could load gigabytes before a snapshot part noticed it was full. On top of that, one object it couldn't read failed the whole chunk, even when the part filled before reaching that object, so the valid part and its continuation were lost.The threads reading a chunk now share a byte count and stop once it reaches the chunk's target (8 MiB), each still reading at least one object so the reads keep making progress. The chunk hands over objects in order, up to the first thread that stopped early, and the rest come with the next chunk. Each object's read error is kept until the callback reaches it.
clone_snapshotandfetch_100_edited(just bench, sample count 10, on a loaded machine, so only the fastest runs mean much): clone 3.003 s before, 2.572 s after; fetch of 100 edited files 238.4 ms before, 103.4 ms after.Part of #166.
Note
Written by Claude Opus 5.5 in Claude Code (via T3 Code)