Skip to content

Comments

Sequencing performance improvements#307

Merged
rpanic merged 7 commits intodevelopfrom
feature/sequencing-performance
May 21, 2025
Merged

Sequencing performance improvements#307
rpanic merged 7 commits intodevelopfrom
feature/sequencing-performance

Conversation

@rpanic
Copy link
Member

@rpanic rpanic commented Apr 17, 2025

Based on #292

  • Improved block.commit from 660ms to 67ms
    • Memoized PendingTransaction hash -> saved around 370ms (for 100 txs)
    • Removed unnecessary "create if missing" for transactions in a block, since they already exist in the table because of the mempool using the same table
  • Reduce block.transaction overhead by 1ms or so by creating a NonProvable toStateTransitionHash implementation (saves us a few hashes)

Block production with 100 txs with unique keys and postgres/redis DB config:
Before: 5357ms
Now: 2994ms (32.82 tps)

@rpanic rpanic mentioned this pull request Apr 17, 2025
8 tasks
@rpanic rpanic changed the base branch from feature/tracing-mechanic-interval to develop May 21, 2025 08:36
@rpanic rpanic merged commit cd55f07 into develop May 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.

1 participant