-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
perf(tree): integrate parallel state root #7161
Conversation
Performance Improvements on tip
|
let mut state = provider.bundle_state_data_provider.state().clone(); | ||
state.extend(bundle_state.clone()); | ||
let hashed_state = state.hash_state_slow(); | ||
ParallelStateRoot::new(consistent_view, hashed_state) | ||
.incremental_root_with_updates() | ||
.map(|(root, updates)| (root, Some(updates))) | ||
.map_err(ProviderError::from)? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
guessing these clones are fine
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
/// NOTE: It is recommended to provide a different implementation from | ||
/// `state_root_with_updates` since it affects the memory usage during state root | ||
/// computation. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
smol doc nit
/// NOTE: It is recommended to provide a different implementation from | |
/// `state_root_with_updates` since it affects the memory usage during state root | |
/// computation. | |
/// # Note | |
/// | |
/// It is recommended to provide a different implementation from | |
/// `state_root_with_updates` since it affects the memory usage during state root | |
/// computation. |
@rkrasiuk some conflicts left |
ffde69e
to
81259bd
Compare
Description
Integrate parallel state root computation (pre-computing storage roots in parallel) introduced in #6903 into the blockchain tree.