-
Notifications
You must be signed in to change notification settings - Fork 212
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
state sync spike to put swing-store data in IAVL tree on periodic basis #5934
Comments
My understanding of state-sync is that the state needs to be potentially available for every block, requiring a write at the end of each block. Any side tracking + diff would likely be more appropriate for an approach where only the hash of external blobs are saved in the IAVL tree, as potentially described in #5542 (comment). Given the potential performance impact of writing all Swingset state to the IAVL tree, we first need to measure with good granularity the impact it would have. The plan is to:
One thing to take into consideration is the planned move of cosmos to a new IAVL implementation, which would likely impact performance. If we continue with the IAVL tree approach, we'll want to consider writing this swingset state into a different module than the current swingset cosmos module to provide some separation (e.g. in case we want to directly use the IAVL tree from SwingSet in the future). |
Closing as we had spiked this and decided to take this approach for #7225 |
In the last meeting we sketched out some options for state-sync experiments (#5542, #3769). This ticket is to track the spike that we talked about, where we'd put the swing-store contents into the IAVL tree, one of:
The text was updated successfully, but these errors were encountered: