Skip to content

Conversation

@swift1337
Copy link
Member

@swift1337 swift1337 commented Dec 19, 2025

Removes mutex calls from high-level mempool as underlying mempools are already thread-safe.

Local tests showed that insertEVM took up to ~10ms for the lock, and SelectBy up to ~80ms, which is a lot for consensus progression.

Note: txpool.Add() is still slow because it also has a lock inside geth's part of the codebase and also perform some operations under this lock. Local bench showed that it might take up to ~10ms for this operation,

Overall, abci.InsertTx() takes ~30ms

Closes STACK-2019

@swift1337 swift1337 self-assigned this Dec 19, 2025
@linear
Copy link

linear bot commented Dec 23, 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