-
Notifications
You must be signed in to change notification settings - Fork 21.4k
trie, core/state: introduce trie Prefetch for optimizing preload #32134
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
Conversation
3ff33f4
to
74a1edb
Compare
74a1edb
to
48bc3b3
Compare
for _, k := range ks { | ||
_, newnode, didResolve, err := t.get(fn.Children[pos], k, 1) | ||
if err == nil && didResolve { | ||
fn.Children[pos] = newnode |
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.
Why do we need to store the resolved node here?
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.
ah so we don't resolve them again on the next iteration
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.
We have to store the resolved nodes, otherwise the resolved descendants will be lost
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
@MariusVanDerWijden I just pushed a tiny commit on top, please check it again. |
121d027
to
dd764fe
Compare
…ereum#32134) This pull introduces a `Prefetch` operation in the trie to prefetch trie nodes in parallel. It is used by the `triePrefetcher` to accelerate state loading and improve overall chain processing performance.
This pull introduces a
Prefetch
operation in the trie to prefetch trie nodes in parallel.It is used by the
triePrefetcher
to accelerate state loading and improve overallchain processing performance.