Optimize a cache
Tim Williams
listserver at tdw.net
Thu Jun 23 04:51:54 EDT 2005
----- Original Message -----
From: "Florian Lindner" <Florian.Lindner at xgm.de>
> Hello,
> I am building a object cache in python, The cache has a maximum size and
the
> items have expiration dates.
> At the moment I'm doing like that:
> What possible you see to optimize this lookup? Or anything else you see to
> make it better?
Have a look at http://py.vaults.ca/apyllo.py/514463245.769244789.92554878
it already has some of your requirements, and can be used as a building
block.
More information about the Python-list
mailing list