Memory Leakage with Tuples and Lists
June Kim
junaftnoon at nospamplzyahoo.com
Sat Jan 6 02:22:34 EST 2001
Tested under Python 1.5 and 2.0 on Win32:
1.
Python 2.0 (#8, Oct 16 2000, 17:27:58) [MSC 32 bit (Intel)
Type "copyright", "credits" or "license" for more informat
>>> for j in range(10):
... temp=range(800000)
... del temp
2.
Python 2.0 (#8, Oct 16 2000, 17:27:58) [MSC 32 bit (Intel)
Type "copyright", "credits" or "license" for more informat
>>> for j in range(10):
... temp='a'*8000000
... del temp
In the case of #2, there is no memory leakage at all. All the memory is
returned 100%. However, in #1, there is a severe memory leakage, a few mega
bytes. Do you guys experience this on *nices as well?
More information about the Python-list
mailing list