Files
reth/crates/engine
yongkangc 64cceb094c perf(trie): use Option<BranchNodeMasks> instead of TrieMasks for memory optimization
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}.
2026-01-02 09:29:16 +00:00
..