[ZODB-Dev] BTree pickle size

Dieter Maurer dieter at handshake.de
Thu Aug 28 12:51:25 EDT 2008


Roché Compaan wrote at 2008-8-24 14:00 +0200:
>This is the fsdump output for a single IOBTree:
>
>  data #00032 oid=0000000000001bac size=5435 class=BTrees._IOBTree.IOBTree
>
>What is persisted as part of the 5435 bytes? References to containing
>buckets? What else?

For optimization reasons,
an "IOBTree" can in fact essentially be an "IOBucket" (in case of a small
tree consisting of a single bucket).

This means that the "IOBTree" above can in fact contains
up to 60 integers with corresponding values (Python objects).



-- 
Dieter


More information about the ZODB-Dev mailing list