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

Mark Dickinson report at bugs.python.org
Fri Nov 28 21:34:10 CET 2008


Mark Dickinson <dickinsm at gmail.com> added the comment:

The +1 is there for the trailing null byte on the string:  if s is a 
Python string with len(s) == n, then the ob_sval array needs space for n+1 
characters.

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


More information about the Python-bugs-list mailing list