➜

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.

作者 facundobatista
收信人 facundobatista, gtang, tim.peters
日期 2008-06-08.16:59:24
SpamBayes Score 0.02924331
Marked as misclassified 否
Message-id <1212944366.37.0.361157719462.issue3063@psf.upfronthosting.co.za>
In-reply-to
内容
So, 0.0 would be cached, and the 414m+384m would be from the list
itself, right? I tried,

>>> data = [(1.0/i) for i in xrange(1,100000000)]

And the memory consumption was the big one.

Grant, the 800 MB is taken by ONE 0.0, and a list of zillion positions.

Furthermore, I did:

>>> for x in xrange(100000000):
...     i = random()

And the memory didn't increase.

Grant, take note that there's no gc issue, the numbers stay alive
because the list itself is pointing to them.

Closing this as invalid.
历史
日期 用户 动作 参数
2008-06-08 16:59:26facundobatista修改spambayes_score: 0.0292433 -> 0.02924331
recipients: + facundobatista, tim.peters, gtang
2008-06-08 16:59:26facundobatista修改spambayes_score: 0.0292433 -> 0.0292433
messageid: <1212944366.37.0.361157719462.issue3063@psf.upfronthosting.co.za>
2008-06-08 16:59:25facundobatista链接issue3063 messages
2008-06-08 16:59:24facundobatista创建