good morning!!!!

Skip to content
Snippets Groups Projects
Unverified Commit 175506e7 authored by Martin Holst Swende's avatar Martin Holst Swende Committed by GitHub
Browse files

core/types, rlp: optimize derivesha (#21728)


This PR contains a minor optimization in derivesha, by exposing the RLP
int-encoding and making use of it to write integers directly to a
buffer (an RLP integer is known to never require more than 9 bytes
total). rlp.AppendUint64 might be useful in other places too.

The code assumes, just as before, that the hasher (a trie) will copy the
key internally, which it does when doing keybytesToHex(key).

Co-authored-by: default avatarFelix Lange <fjl@twurst.com>
parent 36bb7ac0
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment