[issue1943] improved allocation of PyUnicode objects
Marc-Andre Lemburg
report at bugs.python.org
Tue Jun 2 15:53:37 CEST 2009
Marc-Andre Lemburg <mal at egenix.com> added the comment:
Antoine Pitrou wrote:
> Antoine Pitrou <pitrou at free.fr> added the comment:
>
>> There were a number of patches to support sharing of data between
>> unicode objects. (By Larry Hastings?) They were rejected because (a)
>> they were complicated, and (b) it was possible to provoke pathological
>> memory retention.
>
> Yes, it's the "lazy strings" patches by Larry Hastings (it was for str,
> not unicode, though). Issues are #1590352 and #1569040 (and perhaps
> others).
>
> In any case, as I said, it is easy to switch back to the old
> representation, so I don't think it is an argument to block this patch.
That's not the case.
The patch breaks C API + binary compatibility for an essential Python
type - that's not something you can easily undo.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue1943>
_______________________________________
More information about the Python-bugs-list
mailing list