You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Enhance ComputeMerkleBehavior with a behavior that will allow to define which of the Keccaks are memoized. Please be minded that storing Keccaks does not impact the Merkle behavior as it preserves the correctness tracking paths. The only impact is performance.
One way to implement it would be to have a single integer that marks from which level the Keccaks of branches need to be memoized, like int memoizeKeccakFromTrieLevel. This would work nicely for both, Storage and State so it looks like no differentiation between these would be required. Maybe, we could start from int memoizeKeccakFromTrieLevel = 2? Also, caching every Nth level can be the option to make the data smaller.
The text was updated successfully, but these errors were encountered:
Enhance
ComputeMerkleBehavior
with a behavior that will allow to define which of the Keccaks are memoized. Please be minded that storing Keccaks does not impact the Merkle behavior as it preserves the correctness tracking paths. The only impact is performance.One way to implement it would be to have a single integer that marks from which level the Keccaks of branches need to be memoized, like
int memoizeKeccakFromTrieLevel
. This would work nicely for both,Storage
andState
so it looks like no differentiation between these would be required. Maybe, we could start fromint memoizeKeccakFromTrieLevel = 2
? Also, caching every Nth level can be the option to make the data smaller.The text was updated successfully, but these errors were encountered: