Skip to content

trie/bintrie: cache hashes of clean nodes so as not to rehash the whole tree#33961

Open
gballet wants to merge 1 commit intoethereum:masterfrom
gballet:binary-trie-cached-hash
Open

trie/bintrie: cache hashes of clean nodes so as not to rehash the whole tree#33961
gballet wants to merge 1 commit intoethereum:masterfrom
gballet:binary-trie-cached-hash

Conversation

@gballet
Copy link
Member

@gballet gballet commented Mar 5, 2026

This is an optimization that existed for verkle and the MPT, but that got dropped during the rebase.

Mark the nodes that were modified as needing recomputation, and skip the hash computation if this is not needed. Otherwise, the whole tree is hashed, which kills performance.

@gballet gballet added this to the 1.17.2 milestone Mar 5, 2026
@gballet gballet requested a review from rjl493456442 as a code owner March 5, 2026 17:32
@gballet gballet added the zk label Mar 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant