Repository navigation
Fix delta copy test expectations - #2073
Merged
Merged
Conversation
This was referenced May 5, 2026
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.
This was referenced May 5, 2026
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
4 tasks
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.
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
Testing
[Codex Task](