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(block): improve performance for transaction packing #4756

Merged
merged 1 commit into from
Nov 30, 2022

Conversation

halibobo1205
Copy link
Contributor

What does this PR do?

  1. remove unused code
  2. optimize cycle operation

Why are these changes required?

This PR has been tested by:

  • Unit Tests
  • Manual Testing

Follow up

Extra details

@halibobo1205
Copy link
Contributor Author

halibobo1205 commented Nov 15, 2022

trace generateBlock

---[781.371363ms] org.tron.core.db.Manager:generateBlock()
        +---[0.45% ,total=3.54333ms,count=5126] org.tron.core.config.args.Args:getInstance() 
        +---[0.42% ,total=3.310764ms,count=5126] org.tron.common.parameter.CommonParameter:isOpenTransactionSort() 
        +---[0.52% ,total=4.030139ms,count=5125] org.tron.core.capsule.TransactionCapsule:getSerializedSize() 
        +---[0.44% ,total=3.421337ms,count=5125] org.tron.core.capsule.TransactionCapsule:getInstance() 
        +---[0.42% ,total=3.281247ms,count=5125] org.tron.core.capsule.TransactionCapsule:getInstance() 

@halibobo1205 halibobo1205 force-pushed the feat/pack_trx_opt branch 2 times, most recently from e615370 to a66493b Compare November 16, 2022 08:07
@halibobo1205 halibobo1205 marked this pull request as ready for review November 24, 2022 09:20
  1. remove unused code
  2. optimize cycle operation
Copy link

@hosein6666 hosein6666 left a comment

Choose a reason for hiding this comment

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

@hosein6666
Copy link

Rfuy6

@halibobo1205 halibobo1205 merged commit 5c4e491 into tronprotocol:develop Nov 30, 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.

4 participants