Skip to content

Separate transaction queue#1886

Open
heifner wants to merge 10 commits intoAntelopeIO:mainfrom
heifner:separate-trx-queue
Open

Separate transaction queue#1886
heifner wants to merge 10 commits intoAntelopeIO:mainfrom
heifner:separate-trx-queue

Conversation

@heifner
Copy link
Contributor

@heifner heifner commented Feb 2, 2026

See Wire-Network/wire-sysio#163

Add a separate trx execution queue, trx_read_write, that is executed from when there are no read_write or read_only tasks to execute. This preserves running trxs as the lowest priority task, but allows for individual prioritization of transactions. As of this PR, all transactions have the same priority, however, this adds the framework for specifying different priorities for transactions. The new trx_read_write queue is only for non-read-only transactions. Read-only transactions are still executed in FIFO order on multiple threads.

In addition to allowing for different priorities for transactions, this change also reduces the contention on the main io_context which in previous benchmarking was demonstrated to be a bottleneck for small transfer like transactions.

See AntelopeIO/leap#1860

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