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 lemburg
Recipients Kwpolska, docs@python, lemburg, rhettinger, serhiy.storchaka, steven.daprano, vstinner
Date 2017-03-05.17:47:35
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1488736055.37.0.897084630494.issue29724@psf.upfronthosting.co.za>
In-reply-to
Content
The localization using keyword parameters is a very old trick to avoid global lookups. It does give a noticeable speedup, esp. when the localized variables are used in tight loops or the function itself is used in such loops.

The 5% speedup Steven measured matches my experience with this trick as well. In some cases, it can provide a more dramatic speedup, but this depends a lot on how the code is written.
History
Date User Action Args
2017-03-05 17:47:35lemburgsetrecipients: + lemburg, rhettinger, vstinner, steven.daprano, docs@python, serhiy.storchaka, Kwpolska
2017-03-05 17:47:35lemburgsetmessageid: <1488736055.37.0.897084630494.issue29724@psf.upfronthosting.co.za>
2017-03-05 17:47:35lemburglinkissue29724 messages
2017-03-05 17:47:35lemburgcreate