mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-01-11 08:18:19 -05:00
Replace TrieMasks (8 bytes) with Option<BranchNodeMasks> (6 bytes) in
ProofTrieNode and related structures, achieving ~25% memory savings
per node when masks are present.
The key insight is that tree_mask and hash_mask are always set together
(from database branch nodes), so using Option<struct> is more efficient
than struct{Option, Option}.