Skip to content

perf(storage): flatten TrieUpdates before persist#20785

Closed
cwkang1998 wants to merge 1 commit intoparadigmxyz:mainfrom
cwkang1998:perf/flatten-trieupdates-before-persists
Closed

perf(storage): flatten TrieUpdates before persist#20785
cwkang1998 wants to merge 1 commit intoparadigmxyz:mainfrom
cwkang1998:perf/flatten-trieupdates-before-persists

Conversation

@cwkang1998
Copy link
Contributor

@cwkang1998 cwkang1998 commented Jan 6, 2026

Accumulates TriesUpdateSorted and batch write at at the end. Prior benchmark done in #19739 indicates this should improve batch processing performance.

Both #19739 and its succeesor #19991,, contains benchmarks that measures the performance improvements. I am not really familiar on how to do that, so if that's something that's required, would appreciate some guidance.

Closes #20611

@github-project-automation github-project-automation bot moved this to Backlog in Reth Tracker Jan 6, 2026
@cwkang1998 cwkang1998 force-pushed the perf/flatten-trieupdates-before-persists branch 2 times, most recently from b28d22e to f03ef4b Compare January 8, 2026 09:06
@cwkang1998 cwkang1998 marked this pull request as ready for review January 8, 2026 09:08
@cwkang1998 cwkang1998 force-pushed the perf/flatten-trieupdates-before-persists branch 3 times, most recently from 8c930f0 to ff12a70 Compare January 9, 2026 04:19
@mattsse mattsse added C-perf A change motivated by improving speed, memory usage or disk footprint A-db Related to the database labels Jan 9, 2026
Copy link
Member

@mediocregopher mediocregopher left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks correct to me, just needs merge conflict fixed. I'll also want to test this very thoroughly on real nodes before merging, as this area caused us problems in the past.

@cwkang1998
Copy link
Contributor Author

This looks correct to me, just needs merge conflict fixed. I'll also want to test this very thoroughly on real nodes before merging, as this area caused us problems in the past.

Got it, let me fix the merge conflicts. I'll try to test this on real nodes as well and report back in a day or 2.

Accumulates TriesUpdateSorted and batch write at at the end. Prior
benchmark done in paradigmxyz#19739 indicates this should improve batch processing
performance.

Both paradigmxyz#19739 and its succeesor paradigmxyz#19991, contains benchmarks that measures
the performance improvements. I am not really familiar on how to do
that, so if that's something that's required, would appreciate some
help.

Closes paradigmxyz#20611
@cwkang1998 cwkang1998 force-pushed the perf/flatten-trieupdates-before-persists branch from ff12a70 to 43f9d52 Compare January 13, 2026 18:32
@cwkang1998
Copy link
Contributor Author

cwkang1998 commented Jan 19, 2026

Closing this as it seems to be completed by #21142. If I am wrong feel free to reopen and I shall resume work.

@cwkang1998 cwkang1998 closed this Jan 19, 2026
@github-project-automation github-project-automation bot moved this from Backlog to Done in Reth Tracker Jan 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-db Related to the database C-perf A change motivated by improving speed, memory usage or disk footprint

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Flatten TrieUpdates before persisting

3 participants