Message242281
| Author |
bukzor |
| Recipients |
bukzor |
| Date |
2015年04月30日.18:59:04 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1430420344.67.0.572478851339.issue24085@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
In the attached example I show that there's a significant memory overhead present whenever a pre-compiled pyc is not present.
This only occurs with more than 5225 objects (dictionaries in this case)
allocated. At 13756 objects, the mysterious pyc overhead is 50% of memory
usage.
I've reproduced this issue in python 2.6, 2.7, 3.4. I imagine it's present in all cpythons.
$ python -c 'import repro'
16736
$ python -c 'import repro'
8964
$ python -c 'import repro'
8964
$ rm *.pyc; python -c 'import repro'
16740
$ rm *.pyc; python -c 'import repro'
16736
$ rm *.pyc; python -c 'import repro'
16740 |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2015年04月30日 18:59:04 | bukzor | set | recipients:
+ bukzor |
| 2015年04月30日 18:59:04 | bukzor | set | messageid: <1430420344.67.0.572478851339.issue24085@psf.upfronthosting.co.za> |
| 2015年04月30日 18:59:04 | bukzor | link | issue24085 messages |
| 2015年04月30日 18:59:04 | bukzor | create |
|