Message120563
| Author |
dmalcolm |
| Recipients |
belopolsky, benjamin.peterson, dmalcolm, jhylton, nnorwitz, rhettinger, sdahlbac, thomaslee, titanstar |
| Date |
2010年11月06日.00:10:11 |
| SpamBayes Score |
7.219915e-05 |
| Marked as misclassified |
No |
| Message-id |
<1289002215.12.0.462304330739.issue1346238@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
Another optimization idea: detect local dictionaries that are only ever used in non-mutating ways, and convert them to constants, rather than rebuilding the dict from scratch each time.
See e.g. htmlparser.py:adjustSVGAttributes etc within the bm_html5lib benchmark (though this doesn't seem to be ported to py3k yet) |
|