Author serhiy.storchaka
Recipients orent, serhiy.storchaka, vstinner
Date 2017-04-24.18:55:59
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1493060159.65.0.375482277072.issue30156@psf.upfronthosting.co.za>
In-reply-to
Content
The regression was added by the fix for issue26811. PR 1272 applies the alternate patch from issue26811. This doesn't harm the performance.

$ ./python.patched -m perf timeit -q --compare-to ./python.default -s "from collections import namedtuple; P = namedtuple('P', 'x y'); p = P(1, 2)" --duplicate 1000 "p.x"
Mean +- std dev: [python.default] 128 ns +- 7 ns -> [python.patched] 121 ns +- 7 ns: 1.05x faster (-5%)

I thought about tests, but I don't know what is the best place for them. Seems other environment variables that controls debug output are not tested too.
History
Date User Action Args
2017-04-24 18:55:59serhiy.storchakasetrecipients: + serhiy.storchaka, vstinner, orent
2017-04-24 18:55:59serhiy.storchakasetmessageid: <1493060159.65.0.375482277072.issue30156@psf.upfronthosting.co.za>
2017-04-24 18:55:59serhiy.storchakalinkissue30156 messages
2017-04-24 18:55:59serhiy.storchakacreate