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 serhiy.storchaka
Recipients josh.r, rhettinger, serhiy.storchaka, vstinner, wbolster
Date 2015-02-23.11:26:40
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
My interpretation of the results. In CPython using operator.itemgetter() makes sorting up to 2 times faster (only 25% faster with string keys), in PyPy it make sorting slightly slower (because operator.itemgetter() is implemented in Python, but the lambda is more specialized and could be better optimized).

The lambda looks more clear to me, and I think there is the possibility to optimize CPython to replace the body of such functions with builtins from the operator module.
Date User Action Args
2015-02-23 11:26:40serhiy.storchakasetrecipients: + serhiy.storchaka, rhettinger, vstinner, wbolster, josh.r
2015-02-23 11:26:40serhiy.storchakasetmessageid: <>
2015-02-23 11:26:40serhiy.storchakalinkissue23493 messages
2015-02-23 11:26:40serhiy.storchakacreate