[ZODB-Dev] [Enhancement Proposal] Garanteed lifetime for volatile
variables
Jim Fulton
jim at zope.com
Mon Oct 9 15:04:19 EDT 2006
Dieter Maurer wrote:
> Jim Fulton wrote at 2006-10-9 13:22 -0400:
>> ...
>> Hm, I don't why the use cases imply setting it only at the class
>> level, but OK. I'll just take that as a given. So, since _p_sticky
>> is set at the class level, why store it on the instances?
>
...
> use case 3, set on instance level.
I missed that. Sorry.
> To make cache garbage collection as fast as possible,
> I have proposed to actually store the sticky information in the
> C object structure.
I don't like the idea of adding that overhead to every
persistent object just for this use case. OTOH, we only
need a bit and I think we had a few spare bits. So maybe
this wouldn't require any new space.
Jim
--
Jim Fulton mailto:jim at zope.com Python Powered!
CTO (540) 361-1714 http://www.python.org
Zope Corporation http://www.zope.com http://www.zope.org
More information about the ZODB-Dev
mailing list