This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

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)
History
Date User Action Args
2010-11-06 00:10:15dmalcolmsetrecipients: + dmalcolm, jhylton, nnorwitz, rhettinger, belopolsky, sdahlbac, titanstar, thomaslee, benjamin.peterson
2010-11-06 00:10:15dmalcolmsetmessageid: <1289002215.12.0.462304330739.issue1346238@psf.upfronthosting.co.za>
2010-11-06 00:10:11dmalcolmlinkissue1346238 messages
2010-11-06 00:10:11dmalcolmcreate