Skip to content

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

Closed
karalabe wants to merge 2 commits intoethereum:masterfrom
karalabe:lessreads
Closed

core/state/snapshot: reuse memory data instead of hitting disk#22700
karalabe wants to merge 2 commits intoethereum:masterfrom
karalabe:lessreads

Conversation

@karalabe
Copy link
Copy Markdown
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 karalabe requested a review from holiman April 20, 2021 06:44
@karalabe karalabe requested a review from rjl493456442 as a code owner April 20, 2021 06:44
@karalabe
Copy link
Copy Markdown
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