Closed karalabe closed 1 year ago
... but maybe a less intense solution would be go make the shelves track these stats via atomic counters, and similarly make the db track the sum total via atomic counters too?
How about something like this? https://github.com/holiman/billy/compare/stats?expand=1
I'm trying to plot via metrics how much overhead we have vs useful data in Billy. For that I need to expose the gap count in the shelves. The PR exposes a few more things for completeness sake.