lru-cache icon indicating copy to clipboard operation
lru-cache copied to clipboard

README doesn't explain real-world uses of the Cache and TimedCache

Open a2nath opened this issue 1 year ago • 0 comments

Can you explain some real-world examples of Cache and TimeCache in your readme? I see that you're caching the values in your fibo lookup but there is an overhead to hashing, hmaps also suffer from relocations.

I did some experiments with caching sin, cos, and pow and ultimately deleted those libraries because I was able to bring down execution time from 3500 ms to 60 ms in a time-critical loop. Would you kindly provide some benchmarks for your real-world use cases too?

As for the TimedCache, I kind-of see the use, but could use a better example in a grand scheme of things.

a2nath avatar Jan 30 '25 05:01 a2nath