[issue19246] GC does not really free up memory in console

STINNER Victor report at bugs.python.org
Mon Oct 14 13:12:37 CEST 2013


STINNER Victor added the comment:

Python uses an allocator called "pymalloc". For allocations smaller
than 512 bytes, it uses arenas of 256 KB. If you allocate many small
objects and later release most of them (but not all!), the memory is
fragmented. For allocations larger than 512 bytes, Python falls back
to malloc/free.

It was discussed to replace pymalloc with Windows Low Fragmented Heap allocator.

----------

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


More information about the Python-bugs-list mailing list