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

Upstream patch: add sharedStorage for prefetching to L1 #10

Open
wants to merge 1 commit into
base: devel
Choose a base branch
from

Conversation

0xe3b0c4
Copy link
Collaborator

@0xe3b0c4 0xe3b0c4 commented Aug 27, 2022

Description

From: #792

In the previous prefetch behavior of importing blocks, the prefetch and the main process use completely different state dbs, the prefetch process can only put the retrieved data into the L3 layer, if the main process wants to access, it must go through the L1-L2-L3 layers, the new design let the main process and the prefetch process share a shared_pool with the stateDB. This pool stores the originStorage data (each stateobjects has the corresponding entry ). By this way , the prefetch data that can be directly fished to the L1 layer This shared_pool can be represented as the following secondary map structure, which is a private member variable in stateDB , each stateObjects has pointer to access the Corresponding entry of shared_pool

@0xe3b0c4 0xe3b0c4 changed the title Patch: Cherry pick BSC PR #792 Patch: add sharedStorage for prefetching to L1 Aug 27, 2022
@0xe3b0c4 0xe3b0c4 changed the title Patch: add sharedStorage for prefetching to L1 Upstream patch: add sharedStorage for prefetching to L1 Aug 27, 2022
@0xe3b0c4 0xe3b0c4 added the upstream pulling pull and merge from upstream repo label Sep 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
upstream pulling pull and merge from upstream repo
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant