[ZODB-Dev] cache gc api
Jeremy Hylton
jeremy@zope.com
Fri, 2 Nov 2001 12:04:13 -0500 (EST)
>>>>> "BAW" == Barry A Warsaw <barry@zope.com> writes:
>>>>> "JH" == Jeremy Hylton <jeremy@zope.com> writes:
JH> - Add documentation that says you can pass a value greater
JH> than 196608 to achieve the effect of only removing unreachable
JH> objects.
JH> (If that seems to weird, we could use -1 to mean this instead of
JH> 0.)
BAW> "196608" certainly seems weird to me. I assume it's not
BAW> completely arbitrary <wink>, but I've no idea why this number
BAW> is so special. Thus +1 on -1. :)
It's relying on some internal implementation details -- specifically
that it divides the times it uses by 3 and then takes % 65356. So it
you specifiy an age greater than 3 * 65536, then you've effectively
specified an age older than all objects.
Jeremy