You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hashing of RLP is critical for execution client performance and will become even more important when we start using more efficient encodings than RLP in the client.
Currently, to compute the hash of an RLP-encoded item we first serialize the data to a seq[byte] then perform the hashing. This creates a short-lived memory allocation for every hash we compute which is unfortunate and unnecessary.
Instead, we should create a new RlpHashWriter type that keeps a hashing context open and constructs the hash on the fly without writing the bytes to a seq first.
The text was updated successfully, but these errors were encountered:
Hashing of RLP is critical for execution client performance and will become even more important when we start using more efficient encodings than RLP in the client.
Currently, to compute the hash of an RLP-encoded item we first serialize the data to a
seq[byte]
then perform the hashing. This creates a short-lived memory allocation for every hash we compute which is unfortunate and unnecessary.Instead, we should create a new
RlpHashWriter
type that keeps a hashing context open and constructs the hash on the fly without writing the bytes to aseq
first.The text was updated successfully, but these errors were encountered: