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

core/state/snapshot: reuse memory data instead of hitting disk #22700

Closed
wants to merge 2 commits into from

Conversation

karalabe
Copy link
Member

Alternative implementation for #22667, which in theory does the same thing reusing the read/clean cache, instead of introducing a new mechanism. Needs to be benchmarked / verified though.

@karalabe
Copy link
Member Author

Closing as this is a potentially problematic solution. Placing non-existing stuff into the cache (trie generated from a stale snapshot) can have weird consequences if one of the non-existing trie nodes gets generated in a next block, never getting written to disk because it's in the clean cache. We could possibly very carefully handle this cornercase, but seems asking for trouble.

@karalabe karalabe closed this Apr 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants