Re: [Zope-dev] Cache code in Shared/DC/ZRDB/DA.py

2006-11-17 Thread Tino Wildenhain
Chris Withers schrieb: Chris Withers wrote: I have to be honest, I'm looking to simplify, and this sounds a LOT more complicated... Okay, I've written unit tests and refactored the code on the 2.9 branch, 2.10 branch and trunk. Please let me know if you have any problems... Uh oh - whic

Re: [Zope-dev] Cache code in Shared/DC/ZRDB/DA.py

2006-11-17 Thread Dieter Maurer
Chris Withers wrote at 2006-11-16 17:29 +: > >I'm wondering if you can still remember the rational behind the cache >code at around lines 355-387 of: > >http://svn.zope.org/Zope/trunk/lib/python/Shared/DC/ZRDB/DA.py?rev=68158&view=auto > >This code is pretty old (checked in 5th Dec 1997) b

Re: [Zope-dev] Cache code in Shared/DC/ZRDB/DA.py

2006-11-17 Thread Chris Withers
Chris Withers wrote: I have to be honest, I'm looking to simplify, and this sounds a LOT more complicated... Okay, I've written unit tests and refactored the code on the 2.9 branch, 2.10 branch and trunk. Please let me know if you have any problems... cheers, Chris -- Simplistix - Conte

Re: [Zope-dev] Cache code in Shared/DC/ZRDB/DA.py

2006-11-17 Thread Tino Wildenhain
Chris Withers schrieb: Tino Wildenhain wrote: I have a replacement started, which uses Cacheable mixin instead. Advantage is, with RAM Cache Manager you can see the hits your method cause and invalide the cache per object. I also introduced a execution time treshold, so you can configure to only

Re: [Zope-dev] Cache code in Shared/DC/ZRDB/DA.py

2006-11-17 Thread Tino Wildenhain
Chris Withers schrieb: Tino Wildenhain wrote: I have a replacement started, which uses Cacheable mixin instead. Advantage is, with RAM Cache Manager you can see the hits your method cause and invalide the cache per object. I also introduced a execution time treshold, so you can configure to only

Re: [Zope-dev] Cache code in Shared/DC/ZRDB/DA.py

2006-11-17 Thread Chris Withers
Tino Wildenhain wrote: I have a replacement started, which uses Cacheable mixin instead. Advantage is, with RAM Cache Manager you can see the hits your method cause and invalide the cache per object. I also introduced a execution time treshold, so you can configure to only cache runtimes say abov

Re: [Zope-dev] Cache code in Shared/DC/ZRDB/DA.py

2006-11-16 Thread Tino Wildenhain
Chris Withers schrieb: Hi Jim, I'm wondering if you can still remember the rational behind the cache code at around lines 355-387 of: http://svn.zope.org/Zope/trunk/lib/python/Shared/DC/ZRDB/DA.py?rev=68158&view=auto This code is pretty old (checked in 5th Dec 1997) but has started causi

[Zope-dev] Cache code in Shared/DC/ZRDB/DA.py

2006-11-16 Thread Chris Withers
Hi Jim, I'm wondering if you can still remember the rational behind the cache code at around lines 355-387 of: http://svn.zope.org/Zope/trunk/lib/python/Shared/DC/ZRDB/DA.py?rev=68158&view=auto This code is pretty old (checked in 5th Dec 1997) but has started causing a few people problems un