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 1 month ago • 1 comments

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

@mediocregopher @mattsse addressed your feedbacks 👍🏻

yongkangc avatar Nov 07 '25 05:11 yongkangc