diff --git a/crates/trie/trie/src/proof_v2/mod.rs b/crates/trie/trie/src/proof_v2/mod.rs index 8861def8a5..0696ca1668 100644 --- a/crates/trie/trie/src/proof_v2/mod.rs +++ b/crates/trie/trie/src/proof_v2/mod.rs @@ -105,10 +105,10 @@ impl ProofCalculator { hashed_cursor, branch_stack: Vec::<_>::with_capacity(64), branch_path: Nibbles::new(), - child_stack: Vec::<_>::new(), + child_stack: Vec::<_>::with_capacity(64), cached_branch_stack: Vec::<_>::with_capacity(64), - retained_proofs: Vec::<_>::new(), - rlp_nodes_bufs: Vec::<_>::new(), + retained_proofs: Vec::<_>::with_capacity(32), + rlp_nodes_bufs: Vec::<_>::with_capacity(8), rlp_encode_buf: Vec::<_>::with_capacity(RLP_ENCODE_BUF_SIZE), } }