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

feat(txpool): improve performance of Reheap #89

Merged

Conversation

andyzhang2023
Copy link
Contributor

Description

Reheap() needs to be finished as quickly as possible to support a high-throughput pool.

Rationale

By profiling the CPU usages, we find that the GasTipCap() and GasFeeCap() cost the most, so we rewrite the compare function to avoid the non-sense calling of new(big.Int) and big.Set.

cpuprofiling

@github-actions github-actions bot requested review from bnoieh and redhdx April 22, 2024 06:42
owen-reorg pushed a commit to owen-reorg/op-geth that referenced this pull request Apr 25, 2024
…ith-time

Update goerli regolith hardfork time
Copy link
Contributor

@redhdx redhdx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@owen-reorg owen-reorg changed the title improve performance of Reheap in txpool feat(txpool): improve performance of Reheap May 28, 2024
@owen-reorg owen-reorg merged commit 3949d08 into bnb-chain:develop May 28, 2024
1 check passed
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