SamSaffron / lru_redux

An efficient optionally thread safe LRU Cache
MIT License
285 stars 20 forks source link

Monitoring/Stats? #15

Closed tcrayford closed 7 years ago

tcrayford commented 7 years ago

Is there a reasonable mechanism for monitoring the cache hit ratio of any of the lru_redux caches? I can of course, monitor using booleans etc at the callsite, but it's kinda inconvenient if there are plenty of them.

Would you be interested in a patch that adds stats somehow?

SamSaffron commented 7 years ago

I would inherit off it and implement counting there, super duper picky about decreasing any performance here.

On Wed, Dec 14, 2016 at 11:33 AM, Tom Crayford notifications@github.com wrote:

Is there a reasonable mechanism for monitoring the cache hit ratio of any of the lru_redux caches? I can of course, monitor using booleans etc at the callsite, but it's kinda inconvenient if there are plenty of them.

Would you be interested in a patch that adds stats somehow?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/SamSaffron/lru_redux/issues/15, or mute the thread https://github.com/notifications/unsubscribe-auth/AAAUXSbKMmfMXTkIPEiQtfsixLO7T5mRks5rHzlegaJpZM4LMZft .

tcrayford commented 7 years ago

Fair. Thanks.