Skip to content

Commit 613ea79

Browse files
committed
perf(trie): remove reserve_nodes call
1 parent abd283f commit 613ea79

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

crates/trie/sparse/src/state.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -351,9 +351,6 @@ impl<F: BlindedProviderFactory> SparseStateTrie<F> {
351351
self.retain_updates,
352352
)?;
353353

354-
// Reserve the capacity for new nodes ahead of time.
355-
trie.reserve_nodes(new_nodes);
356-
357354
// Reveal the remaining proof nodes.
358355
for (path, node) in account_nodes {
359356
let (hash_mask, tree_mask) = if let TrieNode::Branch(_) = node {

0 commit comments

Comments
 (0)