Python memory usage

Fredrik Lundh fredrik at pythonware.com
Mon Nov 13 21:30:35 CET 2006


Jonathan Ballet wrote:

>> http://effbot.org/pyfaq/why-doesnt-python-release-the-memory-when-i-delete-a-large-object
> 
> Is it still true with Python 2.5 ?
> 
> I mean, [http://evanjones.ca/python-memory.html] should fix this
> behaviour, doesn't it ?

not really -- that change just means that Python's object allocator will 
return memory chunks to the C allocator if the chunks become empty, but 
as the FAQ entry says, there are no guarantees that anything will be 
returned at all.  it all depends on your application's memory allocation 
patterns.

(did you read Evan's presentation material, btw?)

</F>




More information about the Python-list mailing list