Skip to content

consensus/parlia: improve performance of func IsSystemTransaction#2912

Merged
zzzckck merged 1 commit intobnb-chain:developfrom
buddh0:fix-perf-issue-before-prague
Feb 25, 2025
Merged

consensus/parlia: improve performance of func IsSystemTransaction#2912
zzzckck merged 1 commit intobnb-chain:developfrom
buddh0:fix-perf-issue-before-prague

Conversation

@buddh0
Copy link
Contributor

@buddh0 buddh0 commented Feb 24, 2025

Description

consensus/parlia: improve performance of func IsSystemTransaction

Rationale

when use v1.5.x to do benchmark before prague hardfork, strange things happen: the performance downgrades a lot.

Reason is that, when importing a block, for every txs, need to apply func IsSystemTransaction.

In func IsSystemTransaction, use p.signer which is a pragueSigner,

but when getting Sender for txs, use signer cancunSigner,

different type of signers lead to cache missing.

so in this PR, avoid to get sender in IsSystemTransaction when possible.

Example

add an example CLI or API response...

Changes

Notable changes:

  • add each change in a bullet point here
  • ...

@buddh0 buddh0 marked this pull request as ready for review February 24, 2025 09:31
zlacfzy
zlacfzy previously approved these changes Feb 24, 2025
emailtovamos
emailtovamos previously approved these changes Feb 24, 2025
@buddh0 buddh0 dismissed stale reviews from emailtovamos and zlacfzy via 81f537a February 24, 2025 10:04
@zzzckck zzzckck merged commit 94c7a44 into bnb-chain:develop Feb 25, 2025
7 checks passed
@buddh0 buddh0 deleted the fix-perf-issue-before-prague branch March 3, 2025 07:10
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.

4 participants