[C++-sig] Boost.Python v2: object embedding/lazy dict creation

David Abrahams dave at boost-consulting.com
Sat Sep 7 06:46:13 CEST 2002

I've just checked in changes to CVS which cause most wrapped C++ objects to
be stored directly in the memory allocated to their corresponding Python
objects. This should cut down on memory fragmentation and
locality-of-reference issues. A related change causes the instance __dict__
of your wrapped classes to be allocated only when you access the __dict__
attribute or write the first attribute on your class, further reducing
memory overhead.


           David Abrahams * Boost Consulting
dave at boost-consulting.com * http://www.boost-consulting.com

More information about the Cplusplus-sig mailing list