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

Revert "optimization: txpool pending cache improvement (#177)" #242

Closed

Conversation

andyzhang2023
Copy link
Contributor

Description

The improvement of #177 saves about 50+ms of calling txpool.Pending() for the miner, when the pending transactions accumulate up to 100k+.
The improvement of performance depends on the number of pending list.
However, after we had resolved other bottlenecks, the pending transactions will usually be under 100k+, which means it can't save more than 50+ms, and besides, it changes a lot of code to get the improvement.
So we decided to revert it and make it a draft, to re-enable it in the future when needed.

@andyzhang2023
Copy link
Contributor Author

This PR is relied on and included by #244 , so we drop it.

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