0xPolygonZero / zk_evm

Apache License 2.0
85 stars 37 forks source link

Trace decoder should cache `smt`? #727

Closed 0xaatif closed 4 days ago

0xaatif commented 1 month ago

Non blocking: This seems like a quite expensive operation just to get the root of the trie (which may be called often in the code handling the state tries). Maybe we should internally cache smt?

_Originally posted by @atanmarko in https://github.com/0xPolygonZero/zk_evm/pull/693#discussion_r1795055068_