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 orent, rhettinger, serhiy.storchaka, vstinner
Date 2017-04-25.06:16:20
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1493100981.3.0.377193229475.issue30156@psf.upfronthosting.co.za>
In-reply-to
Content
Removing this micro-optimization makes attribute access in namedtuple more than 1.5 times slower:

Mean +- std dev: [python.default] 126 ns +- 4 ns -> [python] 200 ns +- 7 ns: 1.58x slower (+58%)

This would be a significant regression.
History
Date User Action Args
2017-04-25 06:16:21serhiy.storchakasetrecipients: + serhiy.storchaka, rhettinger, vstinner, orent
2017-04-25 06:16:21serhiy.storchakasetmessageid: <1493100981.3.0.377193229475.issue30156@psf.upfronthosting.co.za>
2017-04-25 06:16:21serhiy.storchakalinkissue30156 messages
2017-04-25 06:16:20serhiy.storchakacreate