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

Sync block body #8242

Open
wants to merge 16 commits into
base: main
Choose a base branch
from
Open

Sync block body #8242

wants to merge 16 commits into from

Conversation

pinges
Copy link
Contributor

@pinges pinges commented Feb 4, 2025

PR description

This PR changes the SNAP and CHECKPOINT sync to reduce the memory requirements by not decoding the block bodies requested from peers. This results in less memory and CPU usage during the sync.
This PR does make sure that the properties of the syncs are the same as before, e.g. transaction indexing and block added events haven't changed.

Note: this PR does not significantly reduce the sync time on it's own, because the bottleneck is the import step of the download pipeline. It will however allow us to increase the parallelism of the pipeline because of the reduced memory usage. Once the import step is improved that increase in parallelism will allow us to reduce the sync time.

Note: Not decoding receipts during the sync does improve the memory and CPU usage as well. This has been shown in a POC.

TODO: I will add screenshots from syncs to show the improvement.

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.

1 participant