This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author gtang
Recipients facundobatista, gtang, tim.peters
Date 2008-06-08.16:55:43
SpamBayes Score 0.10672287
Marked as misclassified No
Message-id <1212944145.99.0.719844270819.issue3063@psf.upfronthosting.co.za>
In-reply-to
Content
Here I am confused. 100million floats in a list takes about 800M byte 
memory. This is acceptable. 

for i in xrange(100000000):
    data[i] = random()

so it should be 800M plus a float returned by random(). But the problem 
is after this loop, except 800M bytes list, another >2G memory is 
occupied. And delete data list and call gc.collect() does not release 
these memory. I think you mean there are lots of floats used in random
() call, they should be released after random() returned.
History
Date User Action Args
2008-06-08 16:55:47gtangsetspambayes_score: 0.106723 -> 0.10672287
recipients: + gtang, tim.peters, facundobatista
2008-06-08 16:55:46gtangsetspambayes_score: 0.106723 -> 0.106723
messageid: <1212944145.99.0.719844270819.issue3063@psf.upfronthosting.co.za>
2008-06-08 16:55:44gtanglinkissue3063 messages
2008-06-08 16:55:44gtangcreate