Skip to content

feat(block): improve performance for transaction packing#4756

Merged
halibobo1205 merged 1 commit intotronprotocol:developfrom
halibobo1205:feat/pack_trx_opt
Nov 30, 2022
Merged

feat(block): improve performance for transaction packing#4756
halibobo1205 merged 1 commit intotronprotocol:developfrom
halibobo1205:feat/pack_trx_opt

Conversation

@halibobo1205
Copy link
Copy Markdown
Collaborator

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
Copy Markdown
Collaborator 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
Copy Markdown

@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
Copy Markdown

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