Repository navigation
docs(readme): credit zsync for internal matching-engine inspirations - #4597
Merged
Merged
Conversation
Several in-memory speedups in the matching engine and the receive-side parallel verify scaffolding are adapted from Colin Phipps's zsync librcksum: the bithash pre-filter, sequential-match lookahead, hash-chain pruning, and compact rolling-key encoding. Track these under the ZSO-1..7 and BR-3i / BR-3j series. The rsync wire format is untouched - zsync's techniques apply only to in-memory data structures and dispatch patterns. Per the standing no-wire-protocol-extensions guidance, anything that would require new capability strings or extra wire bytes stays out of scope.
oferchen
force-pushed
the
docs/acknowledgement-zsync
branch
from
May 20, 2026 19:26
0572fdd to
20c2e0c
Compare
4 tasks done
oferchen
added a commit
that referenced
this pull request
May 20, 2026
Adds the two ZSO-1 acceptance tests that complement the bithash prefilter implementation already merged in PR #3737: - bithash_rejects_at_least_seven_eighths_of_known_misses: builds a filter with N=1000 inserted rsums and probes with N=1000 disjoint known-miss rsums, asserting at least 87% reject at the bithash gate. Measured rate on this run: 97.2%. - bithash_state_does_not_leak_between_independent_indexes: builds two DeltaSignatureIndex values from distinct basis bytes and confirms a probe for blocks indexed in one never matches in the other, pinning the per-NDX lifecycle relied on by the ZSO-7 audit (docs/audits/zso-7-inc-recurse-per-segment-state-2026-05-21.md). No production code changes. Wire-byte parity is unaffected; golden tests stay green. Bithash design follows zsync 0.6.2 librcksum (Colin Phipps, http://zsync.moria.org.uk/, README acknowledgement added in PR #4597).
oferchen
added a commit
that referenced
this pull request
Aug 24, 2026
…4597) Several in-memory speedups in the matching engine and the receive-side parallel verify scaffolding are adapted from Colin Phipps's zsync librcksum: the bithash pre-filter, sequential-match lookahead, hash-chain pruning, and compact rolling-key encoding. Track these under the ZSO-1..7 and BR-3i / BR-3j series. The rsync wire format is untouched - zsync's techniques apply only to in-memory data structures and dispatch patterns. Per the standing no-wire-protocol-extensions guidance, anything that would require new capability strings or extra wire bytes stays out of scope.
oferchen
added a commit
that referenced
this pull request
Aug 24, 2026
Adds the two ZSO-1 acceptance tests that complement the bithash prefilter implementation already merged in PR #3737: - bithash_rejects_at_least_seven_eighths_of_known_misses: builds a filter with N=1000 inserted rsums and probes with N=1000 disjoint known-miss rsums, asserting at least 87% reject at the bithash gate. Measured rate on this run: 97.2%. - bithash_state_does_not_leak_between_independent_indexes: builds two DeltaSignatureIndex values from distinct basis bytes and confirms a probe for blocks indexed in one never matches in the other, pinning the per-NDX lifecycle relied on by the ZSO-7 audit (docs/audits/zso-7-inc-recurse-per-segment-state-2026-05-21.md). No production code changes. Wire-byte parity is unaffected; golden tests stay green. Bithash design follows zsync 0.6.2 librcksum (Colin Phipps, http://zsync.moria.org.uk/, README acknowledgement added in PR #4597).
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
Add an acknowledgement to Colin Phipps's zsync in the README. Several in-memory speedups in the matching engine and the receive-side parallel verify scaffolding are adapted from zsync's `librcksum`:
Plus the parallel-receive verify scaffolding in `ParallelDeltaApplier` (BR-3i / BR-3j) borrows zsync's chunked-dispatch pattern. None of these change anything on the wire - the rsync wire format stays untouched. Per the standing no-wire-protocol-extensions guidance, anything that would require a new capability string or extra wire bytes is out of scope.
Test plan