Repository navigation
Refactor filter rule parsing into smaller modules - #2060
Merged
Merged
Conversation
oferchen
added a commit
that referenced
this pull request
May 5, 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.
5 tasks done
oferchen
added a commit
that referenced
this pull request
May 6, 2026
* feat(match): add zsync-inspired bithash prefilter to MatchIndex Translate zsync's librcksum bithash gate into oc-rsync's existing DeltaSignatureIndex. The bithash is an oversized one-sided bit array sized to roughly 8x the rsum-bucket count and probed after the 1 KB tag_table check but before the FxHashMap walk. At the design saturation density (1/8) it rejects ~7/8 of post-tag misses for purely receiver-side CPU savings. The prefilter is in-memory only: no signature payload, NDX framing, capability negotiation, multiplex frame, golden-byte fixture, or interop matrix is touched. Sizing follows docs/design/zsync-bithash.md sections 1 and 2; insertion and probe sites match section 3 exactly. Wires into populate_index alongside tag_table and lookup, and into DeltaSignatureIndex::rebuild via clear() to recycle across the INC_RECURSE per-segment rebuild path. The probe goes into both find_match_bytes and find_match_slices; check_block_match_slices is intentionally not gated since it bypasses the hash table. Property tests pin the no-false-negative contract end-to-end (every inserted basis block is still found) and at the BitHash level (contains is true for every previously inserted rsum, including across clear/reinsert cycles). Closes #2060 Closes #2061 Closes #2062 * fix(deps): regenerate Cargo.lock for proptest dev-dep
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
May 18, 2026
* feat(match): add zsync-inspired bithash prefilter to MatchIndex Translate zsync's librcksum bithash gate into oc-rsync's existing DeltaSignatureIndex. The bithash is an oversized one-sided bit array sized to roughly 8x the rsum-bucket count and probed after the 1 KB tag_table check but before the FxHashMap walk. At the design saturation density (1/8) it rejects ~7/8 of post-tag misses for purely receiver-side CPU savings. The prefilter is in-memory only: no signature payload, NDX framing, capability negotiation, multiplex frame, golden-byte fixture, or interop matrix is touched. Sizing follows docs/design/zsync-bithash.md sections 1 and 2; insertion and probe sites match section 3 exactly. Wires into populate_index alongside tag_table and lookup, and into DeltaSignatureIndex::rebuild via clear() to recycle across the INC_RECURSE per-segment rebuild path. The probe goes into both find_match_bytes and find_match_slices; check_block_match_slices is intentionally not gated since it bypasses the hash table. Property tests pin the no-false-negative contract end-to-end (every inserted basis block is still found) and at the BitHash level (contains is true for every previously inserted rsum, including across clear/reinsert cycles). Closes #2060 Closes #2061 Closes #2062 * fix(deps): regenerate Cargo.lock for proptest dev-dep
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.
oferchen
added a commit
that referenced
this pull request
Aug 24, 2026
* feat(match): add zsync-inspired bithash prefilter to MatchIndex Translate zsync's librcksum bithash gate into oc-rsync's existing DeltaSignatureIndex. The bithash is an oversized one-sided bit array sized to roughly 8x the rsum-bucket count and probed after the 1 KB tag_table check but before the FxHashMap walk. At the design saturation density (1/8) it rejects ~7/8 of post-tag misses for purely receiver-side CPU savings. The prefilter is in-memory only: no signature payload, NDX framing, capability negotiation, multiplex frame, golden-byte fixture, or interop matrix is touched. Sizing follows docs/design/zsync-bithash.md sections 1 and 2; insertion and probe sites match section 3 exactly. Wires into populate_index alongside tag_table and lookup, and into DeltaSignatureIndex::rebuild via clear() to recycle across the INC_RECURSE per-segment rebuild path. The probe goes into both find_match_bytes and find_match_slices; check_block_match_slices is intentionally not gated since it bypasses the hash table. Property tests pin the no-false-negative contract end-to-end (every inserted basis block is still found) and at the BitHash level (contains is true for every previously inserted rsum, including across clear/reinsert cycles). Closes #2060 Closes #2061 Closes #2062 * fix(deps): regenerate Cargo.lock for proptest dev-dep
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
parsingmodule split across helpers, modifiers, merge, and shorthand componentsTesting
[Codex Task](