nearcore icon indicating copy to clipboard operation
nearcore copied to clipboard

Support shard cache updates in state-viewer

Open Longarithm opened this issue 3 years ago • 0 comments

There is a tries.update_cache method get called on StoreUpdate::commit which puts fresh nodes to the shard cache. However, it is not called in state-viewer, which may show worse performance in case when there are lots of writes to the same nodes.

Example patch without caring about the design: https://github.com/Longarithm/nearcore/commit/6014cd40edaa461a38eb5eda5cc01814f2b38d22

cc @jakmeier

Longarithm avatar Aug 09 '22 15:08 Longarithm