cosmos / iavl

Merkleized IAVL+ Tree implementation in Go
Apache License 2.0
409 stars 256 forks source link

Add a metric to track state size #870

Open cmwaters opened 5 months ago

cmwaters commented 5 months ago

This would be useful for tracking state growth

cc @tac0turtle

tac0turtle commented 5 months ago

Goal here would be to track size of current state only.

yihuang commented 5 months ago

root.size?

cmwaters commented 5 months ago

I think it would be helpful to also know the depth of the tree, that way we can make some inference of lookup times