mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-04-30 03:01:58 -04:00
perf(trie): box large AccountMultiproofInput in worker enum
This commit is contained in:
@@ -862,7 +862,7 @@ enum AccountWorkerJob {
|
||||
/// Account multiproof computation request
|
||||
AccountMultiproof {
|
||||
/// Account multiproof input parameters
|
||||
input: AccountMultiproofInput,
|
||||
input: Box<AccountMultiproofInput>,
|
||||
/// Channel to send result back to original caller
|
||||
result_sender: Sender<AccountMultiproofResult>,
|
||||
},
|
||||
@@ -1099,7 +1099,7 @@ impl ProofWorkerHandle {
|
||||
) -> Result<Receiver<AccountMultiproofResult>, ProviderError> {
|
||||
let (tx, rx) = channel();
|
||||
self.account_work_tx
|
||||
.send(AccountWorkerJob::AccountMultiproof { input, result_sender: tx })
|
||||
.send(AccountWorkerJob::AccountMultiproof { input: Box::new(input), result_sender: tx })
|
||||
.map_err(|_| {
|
||||
ProviderError::other(std::io::Error::other("account workers unavailable"))
|
||||
})?;
|
||||
|
||||
Reference in New Issue
Block a user