mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore(trie): replace ParallelStateRoot with AsyncStateRoot (#11213)
This commit is contained in:
@ -13,7 +13,7 @@ use reth_trie::{
|
||||
TrieInput,
|
||||
};
|
||||
use reth_trie_db::{DatabaseHashedCursorFactory, DatabaseStateRoot};
|
||||
use reth_trie_parallel::{async_root::AsyncStateRoot, parallel_root::ParallelStateRoot};
|
||||
use reth_trie_parallel::parallel_root::ParallelStateRoot;
|
||||
use std::collections::HashMap;
|
||||
|
||||
pub fn calculate_state_root(c: &mut Criterion) {
|
||||
@ -70,14 +70,6 @@ pub fn calculate_state_root(c: &mut Criterion) {
|
||||
|calculator| async { calculator.incremental_root() },
|
||||
);
|
||||
});
|
||||
|
||||
// async root
|
||||
group.bench_function(BenchmarkId::new("async root", size), |b| {
|
||||
b.iter_with_setup(
|
||||
|| AsyncStateRoot::new(view.clone(), TrieInput::from_state(updated_state.clone())),
|
||||
|calculator| calculator.incremental_root(),
|
||||
);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user