Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed get_block_template_backlog performance [release-v0.18] #8455

Conversation

SChernykh
Copy link
Contributor

This is a copy of #8381 for release-v0.18 branch.

Before the fix, it processed all transactions in the mempool which could be very slow when mempool grows to several MBs in size. I observed get_block_template_backlog taking up to 15 seconds of CPU time under high mempool load.
After the fix, only transactions that can potentially be mined in the next block will be processed (a bit more than the current block median weight).

Before the fix, it processed all transactions in the mempool which could be very slow when mempool grows to several MBs in size. I observed `get_block_template_backlog` taking up to 15 seconds of CPU time under high mempool load.

After the fix, only transactions that can potentially be mined in the next block will be processed (a bit more than the current block median weight).
@SChernykh SChernykh changed the title Fixed get_block_template_backlog performance Fixed get_block_template_backlog performance [release-v0.18] Jul 22, 2022
@luigi1111 luigi1111 merged commit 5c33f40 into monero-project:release-v0.18 Aug 9, 2022
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.

3 participants