Return DecodedMultiProof
from multiproof threads
#14312
Labels
A-trie
Related to Merkle Patricia Trie implementation
C-enhancement
New feature or request
C-perf
A change motivated by improving speed, memory usage or disk footprint
Right now we return a
MultiProof
from multiproof threads:reth/crates/engine/tree/src/tree/root.rs
Line 424 in b955551
This contains
ProofNodes
which then needs to be decoded inreveal_multiproof
. This can take up to 8-10% of time in the critical path.This 8.6% is this line:
reth/crates/trie/sparse/src/state.rs
Line 251 in b955551
Instead, we should do this before returning a multiproof response. This involves creating a new struct
DecodedProofNodes
, creatingDecoded
versions of proof structs, and using them in the sparse trie instead of the non-decoded versions we have right now.The text was updated successfully, but these errors were encountered: