At 12:33 PM 5/30/2001 +0200, J�rn Schrader wrote:
>I have got a question concerning the object cache in MiddleKits ObjectStore
>(self._objects). Are there any plans introducing something like a cache
>cleaner for frequently clearing the _objects - Dict. in order to avoid never
>ending growing.
Good question and "yes", I just haven't figured out what the approach is
gonna be and there have been some bigger priorities. For example, up until
a week or two ago, DB API cursors were being improperly used making
multi-threading impossible.
Just thinking off the top of my head, perhaps the store could convert
strong refs in _objects to weak ones after a certain time period. That way
if you were really using the object, it would still be known in the object
cache (which is important for "uniquing") but it could go away otherwise. I
have to brush up on weak ref details again.
I wonder if there is an interaction with this approach and g.c. and threads.
-Chuck
_______________________________________________
Webware-discuss mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/webware-discuss