Repository navigation
docs(design): zsync matched-block pruning with duplicate-block correctness - #3644
Merged
Merged
Conversation
…tness Sub-design for the prune insertion point of `docs/design/zsync-inspired-matching.md` (#2068, blocking impl #2069, proptest #2070, benchmark #2071). Covers what zsync does at write_blocks (rsum.c:109-119) and how oc-rsync mirrors it inside crates/match/. Pins the insertion to the inner-loop COPY emit at generator.rs:214. Specifies the MatchedBlocks bitmap (1 bit per signature block, 128 B at 1k blocks, 12.5 MB at 100M), placement alongside DeltaSignatureIndex, and the extended probe order (bithash -> tag_table -> bucket lookup -> bitmap filter -> strong-checksum). Spells out duplicate-bucket correctness with a worked example, the property-test contract, and the bench corpora (VM disk images, log tarballs, synthetic). Restates the wire-compat invariants and the no-CLI/no-protocol cleanup contract.
oferchen
added a commit
that referenced
this pull request
May 18, 2026
…tness (#3644) Sub-design for the prune insertion point of `docs/design/zsync-inspired-matching.md` (#2068, blocking impl #2069, proptest #2070, benchmark #2071). Covers what zsync does at write_blocks (rsum.c:109-119) and how oc-rsync mirrors it inside crates/match/. Pins the insertion to the inner-loop COPY emit at generator.rs:214. Specifies the MatchedBlocks bitmap (1 bit per signature block, 128 B at 1k blocks, 12.5 MB at 100M), placement alongside DeltaSignatureIndex, and the extended probe order (bithash -> tag_table -> bucket lookup -> bitmap filter -> strong-checksum). Spells out duplicate-bucket correctness with a worked example, the property-test contract, and the bench corpora (VM disk images, log tarballs, synthetic). Restates the wire-compat invariants and the no-CLI/no-protocol cleanup contract.
oferchen
added a commit
that referenced
this pull request
Aug 24, 2026
…tness (#3644) Sub-design for the prune insertion point of `docs/design/zsync-inspired-matching.md` (#2068, blocking impl #2069, proptest #2070, benchmark #2071). Covers what zsync does at write_blocks (rsum.c:109-119) and how oc-rsync mirrors it inside crates/match/. Pins the insertion to the inner-loop COPY emit at generator.rs:214. Specifies the MatchedBlocks bitmap (1 bit per signature block, 128 B at 1k blocks, 12.5 MB at 100M), placement alongside DeltaSignatureIndex, and the extended probe order (bithash -> tag_table -> bucket lookup -> bitmap filter -> strong-checksum). Spells out duplicate-bucket correctness with a worked example, the property-test contract, and the bench corpora (VM disk images, log tarballs, synthetic). Restates the wire-compat invariants and the no-CLI/no-protocol cleanup contract.
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.
Sub-design for the prune insertion point of
docs/design/zsync-inspired-matching.md(#2068, blocking impl #2069, proptest #2070, benchmark #2071).Sections
write_blocks(rsum.c:109-119) and howremove_block_from_hash(hash.c:111-128) preserves duplicate siblingshash_entryper block index avoids itcrates/match/src/generator.rs:214)MatchedBlocksbitmap layout, sizing (128 B at 1k blocks, 12.5 MB at 100M), and placement alongsideDeltaSignatureIndexrather than inside itWire-compat invariants
Confirmed unchanged:
crates/protocol/tests/golden/,tools/ci/run_interop.sh, tcpdump-captured payloads, no new flag incrates/cli/, no protocol-crate change.Scope
Docs only. Single new file
docs/design/zsync-prune.md(466 lines). No code or test changes; no other paths touched.