Skip to content

Fix ignore-times handling for quick checks - #2072

Merged
oferchen merged 1 commit into
masterfrom
fix-transfer-request-test-failure
Nov 8, 2025
Merged

oferchen merged 1 commit into
masterfrom
fix-transfer-request-test-failure

Conversation

@oferchen

@oferchen oferchen commented Nov 8, 2025 •

Copy link
Copy Markdown
Owner

Summary

  • update the quick-check logic to mirror rsync's size+mtime shortcut
  • remove the redundant content comparison when ignore-times is not set
  • adjust the unit test to reflect the new parity behaviour

Testing

  • cargo test -p oc-rsync-cli frontend::tests::transfer_request_with_ignore_times_tests::transfer_request_with_ignore_times_forces_copy_despite_matching_timestamps -- --nocapture

[Codex Task](

@oferchen
oferchen merged commit 57a43f8 into master Nov 8, 2025
@oferchen
oferchen deleted the fix-transfer-request-test-failure branch November 8, 2025 15:27
oferchen added a commit that referenced this pull request May 7, 2026
…#3933)

Document the four wire-compatible zsync-inspired matching speedups
(bithash prefilter #2059-2062, seq-match extend-run #2064-2066,
matched-block pruning #2068-2070, compact-keys layout #2072-2073)
with CHANGELOG snippets, a release notes block, an anti-spec
forbidding wire-feature advertisement, and a placeholder for
benchmark numbers pending #2081 and #2082.
oferchen added a commit that referenced this pull request May 13, 2026
#2072) (#3994)

* perf(match): replace FxHashMap with flat open-addressing CompactLookup (#2072)

Replace the pointer-chasing FxHashMap<(u16, u16), Vec<usize>> in
DeltaSignatureIndex with a flat open-addressing hash table using Robin
Hood probing. Each entry is 8 bytes (packed rsum key + block index),
fitting 8 entries per 64-byte cache line.

This eliminates heap-allocated Vec<usize> buckets and their pointer
indirection, improving cache locality during the block-matching hot
loop. The CompactLookup iterator terminates early using the Robin Hood
invariant (no matching entry can exist beyond a slot whose probe
distance is less than the scan distance).

Also removes the now-unused `parallel` feature and rayon optional
dependency from the match crate, since the parallel candidate
verification path was only possible with the old Vec-based buckets.

* fix: regenerate Cargo.lock after removing rayon from matching crate

* fix(match): add capacity() method to CompactLookup

Tests reference capacity() to verify allocation reuse across rebuild.
oferchen added a commit that referenced this pull request May 16, 2026
…2073)

Adds a Criterion bench that profiles DeltaSignatureIndex's compact
lookup table at index sizes spanning L1 (~32 KiB), L2 (~512 KiB),
LLC (~32 MiB), and main memory (~256 MiB), with sequential and
scattered probe access patterns.

The bench supplies the evidence needed to decide whether a packed
(rsum_low | bucket_idx) layout (#2072) would meaningfully improve
cache behavior over the current 8-byte slot layout. Top-of-file
comments document the perf stat and cachegrind invocations and the
favorable / unfavorable thresholds that should inform the decision.

Production code is unchanged. The bench-internal feature gains three
read-only accessors on DeltaSignatureIndex (lookup_capacity,
lookup_bytes, lookup_probe) so the bench can isolate the open-
addressed probe chain from the surrounding match pipeline.
oferchen added a commit that referenced this pull request May 16, 2026
…2073)

Adds a Criterion bench that profiles DeltaSignatureIndex's compact
lookup table at index sizes spanning L1 (~32 KiB), L2 (~512 KiB),
LLC (~32 MiB), and main memory (~256 MiB), with sequential and
scattered probe access patterns.

The bench supplies the evidence needed to decide whether a packed
(rsum_low | bucket_idx) layout (#2072) would meaningfully improve
cache behavior over the current 8-byte slot layout. Top-of-file
comments document the perf stat and cachegrind invocations and the
favorable / unfavorable thresholds that should inform the decision.

Production code is unchanged. The bench-internal feature gains three
read-only accessors on DeltaSignatureIndex (lookup_capacity,
lookup_bytes, lookup_probe) so the bench can isolate the open-
addressed probe chain from the surrounding match pipeline.
oferchen added a commit that referenced this pull request May 16, 2026
…2073)

Adds a Criterion bench that profiles DeltaSignatureIndex's compact
lookup table at index sizes spanning L1 (~32 KiB), L2 (~512 KiB),
LLC (~32 MiB), and main memory (~256 MiB), with sequential and
scattered probe access patterns.

The bench supplies the evidence needed to decide whether a packed
(rsum_low | bucket_idx) layout (#2072) would meaningfully improve
cache behavior over the current 8-byte slot layout. Top-of-file
comments document the perf stat and cachegrind invocations and the
favorable / unfavorable thresholds that should inform the decision.

Production code is unchanged. The bench-internal feature gains three
read-only accessors on DeltaSignatureIndex (lookup_capacity,
lookup_bytes, lookup_probe) so the bench can isolate the open-
addressed probe chain from the surrounding match pipeline.
oferchen added a commit that referenced this pull request May 16, 2026
…2073) (#4188)

* bench(matching): compact-keys cache behavior across L1/L2/LLC sizes (#2073)

Adds a Criterion bench that profiles DeltaSignatureIndex's compact
lookup table at index sizes spanning L1 (~32 KiB), L2 (~512 KiB),
LLC (~32 MiB), and main memory (~256 MiB), with sequential and
scattered probe access patterns.

The bench supplies the evidence needed to decide whether a packed
(rsum_low | bucket_idx) layout (#2072) would meaningfully improve
cache behavior over the current 8-byte slot layout. Top-of-file
comments document the perf stat and cachegrind invocations and the
favorable / unfavorable thresholds that should inform the decision.

Production code is unchanged. The bench-internal feature gains three
read-only accessors on DeltaSignatureIndex (lookup_capacity,
lookup_bytes, lookup_probe) so the bench can isolate the open-
addressed probe chain from the surrounding match pipeline.

* style(matching): apply rustfmt to compact_keys_cache bench

* style(matching): inline MAX_ENTRIES_ENV in format string
oferchen added a commit that referenced this pull request May 17, 2026
Records the no-op decision for the compact-keys packed-layout prototype.
The current `CompactLookup` already realizes the zsync-style open-addressed
table from the layout ADR with 8-byte slots packing the full rolling-sum
key and a `u32` block index. A 4-byte slot in the `(rsum_low | block_idx)`
shape would cap `block_idx` at 65 535, which any 16 MiB transfer at the
default block size already exceeds. Defer per the ADR's revisit triggers;
the existing #2073 cache bench remains the gate for any future denser
variant.
oferchen added a commit that referenced this pull request May 18, 2026
…#3933)

Document the four wire-compatible zsync-inspired matching speedups
(bithash prefilter #2059-2062, seq-match extend-run #2064-2066,
matched-block pruning #2068-2070, compact-keys layout #2072-2073)
with CHANGELOG snippets, a release notes block, an anti-spec
forbidding wire-feature advertisement, and a placeholder for
benchmark numbers pending #2081 and #2082.
oferchen added a commit that referenced this pull request May 18, 2026
#2072) (#3994)

* perf(match): replace FxHashMap with flat open-addressing CompactLookup (#2072)

Replace the pointer-chasing FxHashMap<(u16, u16), Vec<usize>> in
DeltaSignatureIndex with a flat open-addressing hash table using Robin
Hood probing. Each entry is 8 bytes (packed rsum key + block index),
fitting 8 entries per 64-byte cache line.

This eliminates heap-allocated Vec<usize> buckets and their pointer
indirection, improving cache locality during the block-matching hot
loop. The CompactLookup iterator terminates early using the Robin Hood
invariant (no matching entry can exist beyond a slot whose probe
distance is less than the scan distance).

Also removes the now-unused `parallel` feature and rayon optional
dependency from the match crate, since the parallel candidate
verification path was only possible with the old Vec-based buckets.

* fix: regenerate Cargo.lock after removing rayon from matching crate

* fix(match): add capacity() method to CompactLookup

Tests reference capacity() to verify allocation reuse across rebuild.
oferchen added a commit that referenced this pull request May 18, 2026
…2073) (#4188)

* bench(matching): compact-keys cache behavior across L1/L2/LLC sizes (#2073)

Adds a Criterion bench that profiles DeltaSignatureIndex's compact
lookup table at index sizes spanning L1 (~32 KiB), L2 (~512 KiB),
LLC (~32 MiB), and main memory (~256 MiB), with sequential and
scattered probe access patterns.

The bench supplies the evidence needed to decide whether a packed
(rsum_low | bucket_idx) layout (#2072) would meaningfully improve
cache behavior over the current 8-byte slot layout. Top-of-file
comments document the perf stat and cachegrind invocations and the
favorable / unfavorable thresholds that should inform the decision.

Production code is unchanged. The bench-internal feature gains three
read-only accessors on DeltaSignatureIndex (lookup_capacity,
lookup_bytes, lookup_probe) so the bench can isolate the open-
addressed probe chain from the surrounding match pipeline.

* style(matching): apply rustfmt to compact_keys_cache bench

* style(matching): inline MAX_ENTRIES_ENV in format string
oferchen added a commit that referenced this pull request May 18, 2026
Records the no-op decision for the compact-keys packed-layout prototype.
The current `CompactLookup` already realizes the zsync-style open-addressed
table from the layout ADR with 8-byte slots packing the full rolling-sum
key and a `u32` block index. A 4-byte slot in the `(rsum_low | block_idx)`
shape would cap `block_idx` at 65 535, which any 16 MiB transfer at the
default block size already exceeds. Defer per the ADR's revisit triggers;
the existing #2073 cache bench remains the gate for any future denser
variant.
oferchen added a commit that referenced this pull request May 18, 2026
…2073) (#4188)

* bench(matching): compact-keys cache behavior across L1/L2/LLC sizes (#2073)

Adds a Criterion bench that profiles DeltaSignatureIndex's compact
lookup table at index sizes spanning L1 (~32 KiB), L2 (~512 KiB),
LLC (~32 MiB), and main memory (~256 MiB), with sequential and
scattered probe access patterns.

The bench supplies the evidence needed to decide whether a packed
(rsum_low | bucket_idx) layout (#2072) would meaningfully improve
cache behavior over the current 8-byte slot layout. Top-of-file
comments document the perf stat and cachegrind invocations and the
favorable / unfavorable thresholds that should inform the decision.

Production code is unchanged. The bench-internal feature gains three
read-only accessors on DeltaSignatureIndex (lookup_capacity,
lookup_bytes, lookup_probe) so the bench can isolate the open-
addressed probe chain from the surrounding match pipeline.

* style(matching): apply rustfmt to compact_keys_cache bench

* style(matching): inline MAX_ENTRIES_ENV in format string
oferchen added a commit that referenced this pull request May 18, 2026
Records the no-op decision for the compact-keys packed-layout prototype.
The current `CompactLookup` already realizes the zsync-style open-addressed
table from the layout ADR with 8-byte slots packing the full rolling-sum
key and a `u32` block index. A 4-byte slot in the `(rsum_low | block_idx)`
shape would cap `block_idx` at 65 535, which any 16 MiB transfer at the
default block size already exceeds. Defer per the ADR's revisit triggers;
the existing #2073 cache bench remains the gate for any future denser
variant.
oferchen added a commit that referenced this pull request Aug 24, 2026
#2072) (#3994)

* perf(match): replace FxHashMap with flat open-addressing CompactLookup (#2072)

Replace the pointer-chasing FxHashMap<(u16, u16), Vec<usize>> in
DeltaSignatureIndex with a flat open-addressing hash table using Robin
Hood probing. Each entry is 8 bytes (packed rsum key + block index),
fitting 8 entries per 64-byte cache line.

This eliminates heap-allocated Vec<usize> buckets and their pointer
indirection, improving cache locality during the block-matching hot
loop. The CompactLookup iterator terminates early using the Robin Hood
invariant (no matching entry can exist beyond a slot whose probe
distance is less than the scan distance).

Also removes the now-unused `parallel` feature and rayon optional
dependency from the match crate, since the parallel candidate
verification path was only possible with the old Vec-based buckets.

* fix: regenerate Cargo.lock after removing rayon from matching crate

* fix(match): add capacity() method to CompactLookup

Tests reference capacity() to verify allocation reuse across rebuild.
oferchen added a commit that referenced this pull request Aug 24, 2026
…2073) (#4188)

* bench(matching): compact-keys cache behavior across L1/L2/LLC sizes (#2073)

Adds a Criterion bench that profiles DeltaSignatureIndex's compact
lookup table at index sizes spanning L1 (~32 KiB), L2 (~512 KiB),
LLC (~32 MiB), and main memory (~256 MiB), with sequential and
scattered probe access patterns.

The bench supplies the evidence needed to decide whether a packed
(rsum_low | bucket_idx) layout (#2072) would meaningfully improve
cache behavior over the current 8-byte slot layout. Top-of-file
comments document the perf stat and cachegrind invocations and the
favorable / unfavorable thresholds that should inform the decision.

Production code is unchanged. The bench-internal feature gains three
read-only accessors on DeltaSignatureIndex (lookup_capacity,
lookup_bytes, lookup_probe) so the bench can isolate the open-
addressed probe chain from the surrounding match pipeline.

* style(matching): apply rustfmt to compact_keys_cache bench

* style(matching): inline MAX_ENTRIES_ENV in format string
oferchen added a commit that referenced this pull request Aug 24, 2026
Records the no-op decision for the compact-keys packed-layout prototype.
The current `CompactLookup` already realizes the zsync-style open-addressed
table from the layout ADR with 8-byte slots packing the full rolling-sum
key and a `u32` block index. A 4-byte slot in the `(rsum_low | block_idx)`
shape would cap `block_idx` at 65 535, which any 16 MiB transfer at the
default block size already exceeds. Defer per the ADR's revisit triggers;
the existing #2073 cache bench remains the gate for any future denser
variant.
oferchen added a commit that referenced this pull request Aug 24, 2026
…#3933)

Document the four wire-compatible zsync-inspired matching speedups
(bithash prefilter #2059-2062, seq-match extend-run #2064-2066,
matched-block pruning #2068-2070, compact-keys layout #2072-2073)
with CHANGELOG snippets, a release notes block, an anti-spec
forbidding wire-feature advertisement, and a placeholder for
benchmark numbers pending #2081 and #2082.
oferchen added a commit that referenced this pull request Aug 24, 2026
#2072) (#3994)

* perf(match): replace FxHashMap with flat open-addressing CompactLookup (#2072)

Replace the pointer-chasing FxHashMap<(u16, u16), Vec<usize>> in
DeltaSignatureIndex with a flat open-addressing hash table using Robin
Hood probing. Each entry is 8 bytes (packed rsum key + block index),
fitting 8 entries per 64-byte cache line.

This eliminates heap-allocated Vec<usize> buckets and their pointer
indirection, improving cache locality during the block-matching hot
loop. The CompactLookup iterator terminates early using the Robin Hood
invariant (no matching entry can exist beyond a slot whose probe
distance is less than the scan distance).

Also removes the now-unused `parallel` feature and rayon optional
dependency from the match crate, since the parallel candidate
verification path was only possible with the old Vec-based buckets.

* fix: regenerate Cargo.lock after removing rayon from matching crate

* fix(match): add capacity() method to CompactLookup

Tests reference capacity() to verify allocation reuse across rebuild.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant