Skip to content
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): add cross-block caching #13769

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft

Conversation

Rjected
Copy link
Member

@Rjected Rjected commented Jan 10, 2025

This adds cross-block caching, just keeping the most recent cache in memory for reuse. The cached state provider has a save_caches method which applies state updates to the account and storage caches.

When we implement prewarming, we will need to stop and clean up the prewarm threads before saving the caches. It's probably a good idea to do this anyways before the state root task starts, since we should be done prewarming when execution finishes.

ref #13713

@Rjected Rjected added C-enhancement New feature or request C-perf A change motivated by improving speed, memory usage or disk footprint A-execution Related to the Execution and EVM labels Jan 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-execution Related to the Execution and EVM C-enhancement New feature or request C-perf A change motivated by improving speed, memory usage or disk footprint
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant