reth icon indicating copy to clipboard operation
reth copied to clipboard

perf(engine): return sorted data from compute_trie_input

Open yongkangc opened this issue 3 weeks ago • 1 comments
trafficstars

Closes #19249

Eliminates sorting overhead per block by returning TrieInputSorted instead of unsorted TrieInput from compute_trie_input, and have ExecutedBlock utilise the TrieInputSorted

Previously, MultiProofConfig::from_input() would call drain_into_sorted() on both nodes and state every block, performing expensive sorting operations:

yongkangc avatar Oct 28 '25 04:10 yongkangc