Skip to content

docs(design): zsync bithash prefilter shape and sizing - #3642

Merged
oferchen merged 1 commit into
masterfrom
docs/zsync-bithash-2059
May 5, 2026
Merged

oferchen merged 1 commit into
masterfrom
docs/zsync-bithash-2059

Conversation

@oferchen

@oferchen oferchen commented May 5, 2026

Copy link
Copy Markdown
Owner

Detail design for the bithash prefilter, the first of the four
zsync-inspired pipeline optimizations enumerated in
docs/design/zsync-inspired-matching.md.

Sections

Wire-compat invariants (unchanged)

This is docs-only. No Rust code, no wire protocol change, no .zsync
files, 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

  • Markdown renders cleanly on GitHub
  • No code changes; CI builds, fmt+clippy, nextest unaffected
  • No new files outside docs/design/
  • No deprecated APIs introduced

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.
@github-actions github-actions Bot added the documentation Improvements or additions to documentation label May 5, 2026
@oferchen
oferchen merged commit 937ed12 into master May 5, 2026
8 checks passed
@oferchen
oferchen deleted the docs/zsync-bithash-2059 branch May 5, 2026 09:37
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant