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

[Feature] Move state root calculation to the background to enhance live sync performance. #13173

Open
keefel opened this issue Dec 6, 2024 · 0 comments
Labels
C-enhancement New feature or request S-needs-triage This issue needs to be labelled

Comments

@keefel
Copy link

keefel commented Dec 6, 2024

Describe the feature

Based on our test results, calculating the state root is time-consuming. On certain blockchains with shorter block times and higher throughput, the performance of live synchronization encounters significant bottlenecks. Inspired by the asynchronous persistence of databases, we can similarly process the state root asynchronously in the background. Furthermore, we can even bypass the validation of state roots for some blocks to enhance overall performance.

Additional context

I have implemented the first version of this, and the test results show a significant performance improvement. You can refer to this pull request for details: PR #12933.

@keefel keefel added C-enhancement New feature or request S-needs-triage This issue needs to be labelled labels Dec 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-enhancement New feature or request S-needs-triage This issue needs to be labelled
Projects
Status: Todo
Development

No branches or pull requests

1 participant