Bug 222481 - dev-lang/python: return more memory from unicode objects to system
Bug#: 222481 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: python@gentoo.org Reported By: lindevel@gmx.net
Component: Development
URL:  http://bugs.python.org/issue2321
Summary: dev-lang/python: return more memory from unicode objects to system
Keywords:  
Status Whiteboard: 
Opened: 2008-05-17 10:21 0000
Description:   Opened: 2008-05-17 10:21 0000
First: I hope this is not duplicate, but I couldn't find anything, neither in
this tracker, nor in the patchset.

Python up to version 2.5.3 (not released yet) has an memory-fragmentation issue
with deallocation of unicode and other objects. This results in Python apps
which use unicode to consume extreme amounts of memory, without ever returning
them to the system.

http://bugs.python.org/issue2321 contains a patch to fix that.
Even though this bug will be fixed in 2.5.3 and higher, I still would like to
see it go into the gentoo-patchset, because it is a really annoying problem,
making my machine to go out of memory quickly and often.

Reproducible: Always

Steps to Reproduce:

------- Comment #1 From Dennis Schridde 2008-05-17 10:22:42 0000 -------
PS: The SVN revision containing the fix for 2.5 is this one:
http://svn.python.org/view?rev=61485&view=rev

------- Comment #2 From Ali Polatel (RETIRED) 2008-06-24 13:56:46 0000 -------
python-gentoo-patches.2.5.2-r5 has the mentioned patch included.
Thanks for reporting :-)