Message157365
| Author |
Mark.Shannon |
| Recipients |
Jim.Jewett, Mark.Shannon, benjamin.peterson, giampaolo.rodola, gregory.p.smith, jcea, jcon, pitrou, pjenvey, rhettinger, terry.reedy, vstinner |
| Date |
2012年04月02日.15:21:12 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1333380073.05.0.0268479977575.issue13903@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
I'm not bothered by the regression in "silent_logging",
as it is a micro benchmark with a very short running time.
The regression in "mako" is, I think, caused by competition for the
data cache between the new dict implementation and the method-cache
used by _PyType_Lookup. Although the new-dict uses less memory overall,
the size of a single split-table dict (keys + value) is larger than a combined table.
Reducing the method-cache size from 2**10 to 2**9 allows the working set to fit better in the cache.
This fixes the regression in "mako", but makes OO programs that use few objects (such as richards) a bit slower.
Compared with tip, the new-dict implementation
is 4% slower, using 7% less memory for mako. 6% slower, using 5% less memory for richards. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2012年04月02日 15:21:13 | Mark.Shannon | set | recipients:
+ Mark.Shannon, rhettinger, terry.reedy, gregory.p.smith, jcea, pitrou, vstinner, giampaolo.rodola, pjenvey, benjamin.peterson, jcon, Jim.Jewett |
| 2012年04月02日 15:21:13 | Mark.Shannon | set | messageid: <1333380073.05.0.0268479977575.issue13903@psf.upfronthosting.co.za> |
| 2012年04月02日 15:21:12 | Mark.Shannon | link | issue13903 messages |
| 2012年04月02日 15:21:12 | Mark.Shannon | create |
|