perf: avoid cloning bytecode when converting revm's &AccountInfo to reth's Account (#13126)

This commit is contained in:
Hai | RISE
2024-12-04 20:13:35 +07:00
committed by GitHub
parent 8d1a332119
commit 53243a29f3
7 changed files with 18 additions and 9 deletions

View File

@ -45,7 +45,7 @@ impl ExecutionWitnessRecord {
let hashed_address = keccak256(address);
self.hashed_state
.accounts
.insert(hashed_address, account.account.as_ref().map(|a| a.info.clone().into()));
.insert(hashed_address, account.account.as_ref().map(|a| (&a.info).into()));
let storage = self
.hashed_state