Message161340
| Author |
stw |
| Recipients |
pitrou, stw |
| Date |
2012年05月22日.08:57:03 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1337677024.32.0.404455952894.issue14775@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
I'd come to the same conclusion - as the new dict is built up (using batch build) it keeps appearing in generation 0, and the gc has to walk over it to determine that it should be untracked.
However, this only seems to be true if the pickle file is created using pickle - it doesn't happen with files generated with cPickle. With cPickle the dict remains tracked, and passes from generation 0 to 1 to 2. The only difference is that pickle memoizes the tuples, while cPickle doesn't. Why does the memoization make a difference? |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2012年05月22日 08:57:04 | stw | set | recipients:
+ stw, pitrou |
| 2012年05月22日 08:57:04 | stw | set | messageid: <1337677024.32.0.404455952894.issue14775@psf.upfronthosting.co.za> |
| 2012年05月22日 08:57:03 | stw | link | issue14775 messages |
| 2012年05月22日 08:57:03 | stw | create |
|