Repository navigation
docs(audits): zsync packed-key layout feasibility (#2072) - #4192
Merged
Merged
Conversation
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
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
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
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
CompactLookup(8-byte slots, 8 per cache line, Robin Hood probing) already realizes the Option-C layout fromdocs/design/zsync-hash-layout-decision.md.(rsum_low | block_idx)slot is not feasible: 16-bit block indices cap at 65 535, which any 16 MiB transfer at the default block size already exceeds.compact_keys_cache.rs) remains the gate for any future denser variant.Decision rationale
The task framing assumed
(rsum_low, bucket_idx)were separate fields; in fact the currentCompactLookupalready packs(packed_u32_key, u32_block_idx)into a singleu64slot. A further-packed 4-byte slot would either truncate the block-index space (regression) or reintroduce indirection (defeats the optimization). The 87.5% bithash + tag-table rejection rate also structurally bounds the cache benefit of any denser slot.Test plan
docs/audits/).