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

Optimize Rlp Encoding #6957

Merged
merged 4 commits into from
Apr 28, 2024
Merged

Optimize Rlp Encoding #6957

merged 4 commits into from
Apr 28, 2024

Conversation

benaadams
Copy link
Member

@benaadams benaadams commented Apr 27, 2024

Changes

  • Use FrozenDictionary for encoder lookup
  • Use struct wrapper for Type for dicitionary devirtualization
  • Use Instance decoder for BlockInfo, Account, LogInfo rather than type lookup
  • Use Instance decoder for Transaction rather than instatiating new one each time.
  • Use 256bit assignment rather than Span copy for Hash256 encoding
  • Seal TxDecoder and TrieNode
  • Split Rlp and Non-Rlp key generation into seperate methods rather than checking on each loop iteration.

Types of changes

What types of changes does your code introduce?

  • Optimization
  • Refactoring

Testing

Requires testing

  • No

@benaadams benaadams requested review from asdacap and LukaszRozmej and removed request for asdacap April 27, 2024 19:22
@benaadams benaadams merged commit 14f36cd into master Apr 28, 2024
67 checks passed
@benaadams benaadams deleted the optimize-rlp-encoding branch April 28, 2024 18:42
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