homepage

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 yang
Recipients yang
Date 2011年12月06日.20:28:29
SpamBayes Score 0.00406007
Marked as misclassified No
Message-id <1323203310.38.0.606183787821.issue13542@psf.upfronthosting.co.za>
In-reply-to
Content
Calling Pool.map (and friends) on empty lists [] causes Pool._cache to hang on to the MapResults forever:
tp = ThreadPool(5)
xs = tp.map(lambda x: 'a' * int(10e6), range(100))
# now using 1GB mem = 100 * 10MB strs
del xs
gc.collect()
# still using 1GB mem
tp.close(); tp.join()
# now using ~0GB mem
History
Date User Action Args
2011年12月06日 20:28:30yangsetrecipients: + yang
2011年12月06日 20:28:30yangsetmessageid: <1323203310.38.0.606183787821.issue13542@psf.upfronthosting.co.za>
2011年12月06日 20:28:29yanglinkissue13542 messages
2011年12月06日 20:28:29yangcreate

AltStyle によって変換されたページ (->オリジナル) /