Repository navigation
docs(design): zsync bithash prefilter shape and sizing - #3642
Merged
Merged
Conversation
Translate zsync librcksum's bithash mechanism into oc-rsync without touching the wire. Establish the bit-array shape and the BITHASHBITS=3 sizing rationale, name the exact insertion points in the existing index, fix the bit-mixing function on the 32-bit packed rolling sum, restate the no-missed-match property invariant, and list every layer the change must keep byte-identical to upstream 3.0.9 / 3.1.3 / 3.4.1. Bench scaffolding is cfg-gated and never reaches a CLI flag. Implementation is tracked in #2060/#2061; tests in #2062; bench in #2063.
oferchen
added a commit
that referenced
this pull request
May 18, 2026
Translate zsync librcksum's bithash mechanism into oc-rsync without touching the wire. Establish the bit-array shape and the BITHASHBITS=3 sizing rationale, name the exact insertion points in the existing index, fix the bit-mixing function on the 32-bit packed rolling sum, restate the no-missed-match property invariant, and list every layer the change must keep byte-identical to upstream 3.0.9 / 3.1.3 / 3.4.1. Bench scaffolding is cfg-gated and never reaches a CLI flag. Implementation is tracked in #2060/#2061; tests in #2062; bench in #2063.
oferchen
added a commit
that referenced
this pull request
Aug 24, 2026
Translate zsync librcksum's bithash mechanism into oc-rsync without touching the wire. Establish the bit-array shape and the BITHASHBITS=3 sizing rationale, name the exact insertion points in the existing index, fix the bit-mixing function on the 32-bit packed rolling sum, restate the no-missed-match property invariant, and list every layer the change must keep byte-identical to upstream 3.0.9 / 3.1.3 / 3.4.1. Bench scaffolding is cfg-gated and never reaches a CLI flag. Implementation is tracked in #2060/#2061; tests in #2062; bench in #2063.
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.
Detail design for the bithash prefilter, the first of the four
zsync-inspired pipeline optimizations enumerated in
docs/design/zsync-inspired-matching.md.Sections
behavior)
rationale, bench-driven upgrade in Ensure identical timestamp files are compared by content #2063)
crates/match/src/index/mod.rs:165probe,mod.rs:44field,index/builder.rs::populate_indexbuild)RollingDigest::value(),signed-byte invariant from PR test(checksums): pin signed-byte rolling Adler regression fixture #3636)
(proptest sketch for Fix backup handling when quick-check matches #2062)
string, protocol-32 handshake, golden bytes, tcpdump replay, CLI,
interop matrix)
removed at Drop workspace web site metadata #2087)
Wire-compat invariants (unchanged)
This is docs-only. No Rust code, no wire protocol change, no
.zsyncfiles, no CLI flag. The signature payload, NDX framing, capability
negotiation, protocol-32 handshake, golden bytes, and interop matrix
all remain byte-identical to upstream rsync 3.0.9 / 3.1.3 / 3.4.1.
Test plan
docs/design/