[issue2321] return more memory from unicode objects to system
Alec Thomas
report at bugs.python.org
Mon Mar 17 17:55:52 CET 2008
Alec Thomas <alec at swapoff.org> added the comment:
Hi Neal,
This seems to be a more general problem than just unicode.
eg. Tuples:
>>> x = [(1, 2, 3, 4, i) for i in xrange(800000)]
>>> del x
And user-defined objects:
>>> class A(object):
... def __init__(self):
... self.x = random.random()
>>> x = [A() for i in xrange(800000)]
>>> del x
Both exhibit the same behaviour. Naively to me it seems like using the
custom allocator uniformly would fix this problem.
----------
nosy: +alecthomas
__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue2321>
__________________________________
More information about the Python-bugs-list
mailing list