lru-cache
lru-cache copied to clipboard
README doesn't explain real-world uses of the Cache and TimedCache
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.