Skip to content

[Perf] Cache the block tree on shutdown#4017

Closed
ljedrz wants to merge 3 commits into
ProvableHQ:stagingfrom
ljedrz:perf/cache_block_tree
Closed

[Perf] Cache the block tree on shutdown#4017
ljedrz wants to merge 3 commits into
ProvableHQ:stagingfrom
ljedrz:perf/cache_block_tree

Conversation

@ljedrz

@ljedrz ljedrz commented Nov 18, 2025

Copy link
Copy Markdown
Collaborator

This is the snarkOS counterpart to ProvableHQ/snarkVM#3030, targeting ProvableHQ/snarkVM#3026.

I've successfully run some local tests using it, and saving the block tree seems to work most of the time; I'll soon iron out some edge case that I've observed from time to time (with the worst case scenario being the status quo, i.e. a full rebuild of the block tree).

Filing as a draft, as it uses an external branch until the snarkVM changes are merged, plus that one edge case.

Signed-off-by: ljedrz <ljedrz@users.noreply.github.com>
Signed-off-by: ljedrz <ljedrz@users.noreply.github.com>
Signed-off-by: ljedrz <ljedrz@users.noreply.github.com>
@ljedrz ljedrz requested a review from vicsn November 18, 2025 16:19
@vicsn

vicsn commented Nov 18, 2025

Copy link
Copy Markdown
Collaborator

Amazing! @ljedrz let @meddle0x53 know when this is ready for him to give the mainnet ledger load test another try.

@ljedrz

ljedrz commented Nov 21, 2025

Copy link
Copy Markdown
Collaborator Author

Superseded by #4021.

@ljedrz ljedrz closed this Nov 21, 2025
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