Skip to content

Fix delta copy test expectations - #2073

Merged
oferchen merged 1 commit into
masterfrom
fix-unit-test-failure-in-local_copy-module
Nov 8, 2025
Merged

oferchen merged 1 commit into
masterfrom
fix-unit-test-failure-in-local_copy-module

Conversation

@oferchen

@oferchen oferchen commented Nov 8, 2025 •

Copy link
Copy Markdown
Owner

Summary

  • ensure the delta copy regression test explicitly sets distinct mtimes so the transfer runs
  • verify the delta execution records both reused and rewritten bytes to confirm block reuse

Testing

  • cargo test -p oc-rsync-engine local_copy::tests::execute_delta_copy_reuses_existing_blocks
  • cargo clippy -p oc-rsync-engine --tests -- -Dwarnings

[Codex Task](

@oferchen
oferchen merged commit 8dd511f into master Nov 8, 2025
@oferchen
oferchen deleted the fix-unit-test-failure-in-local_copy-module branch November 8, 2025 15:40
oferchen added a commit that referenced this pull request May 5, 2026
Add ADR for the fourth zsync-inspired matching insertion point: in-memory
layout of the rolling-checksum lookup map. Records three options (keep
FxHashMap, sorted-vec binary search, open-addressed table), benchmark-
driven decision criteria gated on #2073 cachegrind data, cache-behaviour
reasoning across L1/L2/L3 working sets, and the wire-compat invariants
(zero wire impact under any option). Recommendation: defer pending #2073;
keep Option A as default unless cache-miss gain exceeds 15% or wall-clock
gain exceeds 10% on the 100 MB-modified benchmark.

Refs #2054.
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
Add ADR for the fourth zsync-inspired matching insertion point: in-memory
layout of the rolling-checksum lookup map. Records three options (keep
FxHashMap, sorted-vec binary search, open-addressed table), benchmark-
driven decision criteria gated on #2073 cachegrind data, cache-behaviour
reasoning across L1/L2/L3 working sets, and the wire-compat invariants
(zero wire impact under any option). Recommendation: defer pending #2073;
keep Option A as default unless cache-miss gain exceeds 15% or wall-clock
gain exceeds 10% on the 100 MB-modified benchmark.

Refs #2054.
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
Add ADR for the fourth zsync-inspired matching insertion point: in-memory
layout of the rolling-checksum lookup map. Records three options (keep
FxHashMap, sorted-vec binary search, open-addressed table), benchmark-
driven decision criteria gated on #2073 cachegrind data, cache-behaviour
reasoning across L1/L2/L3 working sets, and the wire-compat invariants
(zero wire impact under any option). Recommendation: defer pending #2073;
keep Option A as default unless cache-miss gain exceeds 15% or wall-clock
gain exceeds 10% on the 100 MB-modified benchmark.

Refs #2054.
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.
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