durusmail: durus-users: Improving caching performance
Improving caching performance
2005-05-20
2005-05-20
2005-05-20
Improving caching performance
Neil Schemenauer
2005-05-20
On Fri, May 20, 2005 at 04:37:57PM -0400, A.M. Kuchling wrote:
> Puzzling, though -- I instrumented .get() to count calls and cache
> hits, but the numbers were really tiny -- 10 calls, 6 misses.

If the cache is working then you don't get into all the unpicking
code.  The object should just be there in memory.  The main purpose
of the 'cache' dict is so that shrink_cache() can find objects to
kick out of memory.

  Neil
reply