Simple lru cache?
Skip Montanaro
skip at pobox.com
Mon Oct 7 18:41:09 EDT 2002
Ype> Does anyone know of a good lru cache implementation in python?
Skip> ... I wrote and use:
Skip> http://manatee.mojam.com/~skip/python/Cache.py
Paul> This question (LRU caches) comes up so often and so many have been
Paul> written that maybe it's time for a C module.
In my particular case that's not necessary. I'm caching database query
results. I get a big enough performance win with the current module that
rewriting it in C wouldn't improve things enough more to bother.
Skip
More information about the Python-list
mailing list