memory problem with list creation

Stefan Behnel stefan_ml at behnel.de
Wed Jan 13 16:12:55 CET 2010


Allard Warrink, 13.01.2010 15:24:
> so I did some investigation on the memory use of the script. I found
> out that when i populated the lists with floats using a for ... in
> range() loop a lot of overhead memory is used and that this memory is
> not freed after populating the list and is also not freed after
> deleting the list.

You didn't say how you "investigated" the memory usage. Note that the 
Python interpreter does not necessarily free heap memory that it has 
allocated, even if it is not used anymore. Newly created objects will still 
end up in that memory area, so nothing is lost.

Stefan



More information about the Python-list mailing list