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
When querying an uncached key, if you can reuse the previous path, you can reduce the consumption of many database IO and recovery node.
However, this will use more memory and the number of node that need to be calculated per commit will increase, because the hash node will be restored from the database.
So this optimization requires serious thinking.
Cache the whole storage_trie will speed up(maybe a bit) the performance, but the price is get more complexity in codes.
The text was updated successfully, but these errors were encountered:
See: #31 (comment)
First of all, we already have 2 layer caches in use when call
get_storage
:From @yejiayu
Cache the whole storage_trie will speed up(maybe a bit) the performance, but the price is get more complexity in codes.
The text was updated successfully, but these errors were encountered: