mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
perf: remove empty HashMap instances from TrieUpdates and HashedPostState (#13976)
This commit is contained in:
@ -76,6 +76,9 @@ impl TrieUpdates {
|
||||
hashed_address: B256,
|
||||
storage_updates: StorageTrieUpdates,
|
||||
) {
|
||||
if storage_updates.is_empty() {
|
||||
return;
|
||||
}
|
||||
let existing = self.storage_tries.insert(hashed_address, storage_updates);
|
||||
debug_assert!(existing.is_none());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user