Message292235
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. |
|
Date |
User |
Action |
Args |
2017-04-24 18:55:59 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, vstinner, orent |
2017-04-24 18:55:59 | serhiy.storchaka | set | messageid: <1493060159.65.0.375482277072.issue30156@psf.upfronthosting.co.za> |
2017-04-24 18:55:59 | serhiy.storchaka | link | issue30156 messages |
2017-04-24 18:55:59 | serhiy.storchaka | create | |
|