mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
perf(trie): remove some clones (#10406)
This commit is contained in:
@ -39,8 +39,8 @@ impl MemoryOverlayStateProvider {
|
||||
let mut hashed_post_state = HashedPostState::default();
|
||||
let mut trie_updates = TrieUpdates::default();
|
||||
for block in in_memory.iter().rev() {
|
||||
hashed_post_state.extend(block.hashed_state.as_ref().clone());
|
||||
trie_updates.extend(block.trie.as_ref().clone());
|
||||
hashed_post_state.extend_ref(block.hashed_state.as_ref());
|
||||
trie_updates.extend_ref(block.trie.as_ref());
|
||||
}
|
||||
Self { in_memory, hashed_post_state, trie_updates, historical }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user