durusmail: durus-users: Eliminate __dict__ from persistent btree, bnode, dict, list and set
Eliminate __dict__ from persistent btree, bnode, dict, list and set
Eliminate __dict__ from persistent btree, bnode, dict, list and set
2006-07-05
2006-07-05
2006-07-05
2006-07-06
2006-07-06
2006-07-06
XMPP/Jabber chatting (was: Re: [Durus-users] Eliminate __dict__ from persistent btree, bnode, dict, list and set)
2006-10-31
Re: XMPP/Jabber chatting
2006-10-31
Eliminate __dict__ from persistent btree, bnode, dict, list and set
Patrick K. O'Brien
2006-07-05
I have a version of Durus 3.3 working with modified versions of btree,
bnode, dict, and so forth that have no __dict__ (only slots) to save the
memory space of this extra, unnecessary dictionary.  I'm currently
working on the same thing for Durus 3.4.1.  I'm wondering if anyone else
is interested in such a thing, and whether this change could become part
of Durus itself.

Of course, this requires changes to the ghosting process and such.
Backwards compatibility with existing physical files can be maintained
by wrapping __getstate__ values in a dictionary and returning that
dictionary.  Also, something like a PersistentSubclass class would need
to be created for things that did need a __dict__.

Is there an IRC room that we could use to discuss these sort of topics?
 It would be easy to meet on freenode at #durus, for example.

--
Patrick K. O'Brien
Orbtech       http://www.orbtech.com
Schevo        http://www.schevo.org
Louie         http://www.pylouie.org
reply