[Zodb-checkins] SVN: ZODB/trunk/src/ Merged Deiter's branch that provides object-size-based object cache
Sidnei da Silva
sidnei at enfoldsystems.com
Mon Sep 8 14:16:08 EDT 2008
Something doesn't look quite right here. Previously the comment said
'only need 62' but the sum was actually 60. So assuming those extra 2
bytes are going somewhere else, the comment is still wrong, it should
say '68 only need 66'? And also the next line should read 'Even a
ghost requires 68 bytes' now?
> /* How big is a persistent object?
>
> @@ -38,13 +39,14 @@
> 8 ring struct
> 8 serialno
> 4 state + extra
> + 4 size info
>
> - (52) so far
> + (56) so far
>
> 4 dict ptr
> 4 weaklist ptr
> -------------------------
> - 64 only need 62, but obmalloc rounds up to multiple of eight
> + 68 only need 62, but obmalloc rounds up to multiple of eight
>
> Even a ghost requires 64 bytes. It's possible to make a persistent
> instance with slots and no dict, which changes the storage needed.
--
Sidnei da Silva
Enfold Systems http://enfoldsystems.com
Fax +1 832 201 8856 Office +1 713 942 2377 Ext 214
More information about the Zodb-checkins
mailing list