pub const AWAITING_ACK_ENTRY_BYTES: usize = 400;Expand description
Live heap one entry in the awaiting-acknowledgement buffer costs, in bytes.
Measured, not derived. size_of accounts for only 145 B of it — a 33 B HalfKeyChallenge
key and a 112 B TaggedEncryptedPartialSsaShare value, both inline arrays — and moka’s
per-entry bookkeeping (hash map entry, LRU node, TTL timer-wheel node, the Arc around the
value) is the other 244 B. Run awaiting_ack_entry_cost in tests/memory_profile.rs to
re-derive it; at the time of writing it reports 383 B/entry at 20 000 entries and 389 B/entry at
100 000. Rounded up, because understating it would let
max_ack_buffer_bytes be exceeded.
Every entry is this size — the payload is fixed-width inline arrays with no indirection — which is what lets the runtime bound count entries rather than weigh each one.