[issue4445] String allocations waste 3 bytes of memory on average.

Christian Heimes report at bugs.python.org
Fri Nov 28 21:27:47 CET 2008


Christian Heimes <lists at cheimes.de> added the comment:

Why is +1 required here? If I understand offsetof() correctly than it
returns the position of the ob_sval element. Shouldn't PyStringObject +
offsetof(PyStringObject, ob_sval) point to the first element of the
ob_svall array?

----------
nosy: +christian.heimes

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4445>
_______________________________________


More information about the Python-bugs-list mailing list