Message148937
| 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:30 | yang | set | recipients:
+ yang |
| 2011年12月06日 20:28:30 | yang | set | messageid: <1323203310.38.0.606183787821.issue13542@psf.upfronthosting.co.za> |
| 2011年12月06日 20:28:29 | yang | link | issue13542 messages |
| 2011年12月06日 20:28:29 | yang | create |
|