Message263888
Ah, yes, 5dbf3d932a59 partially fixed this optimization. Saving None in a tuple (as I believe done in itertools/zip/enumerate optimization) should fix this issue. I agree that the code is too tricky (as well as the code in itertools/zip/enumerate). It would be better to make tuple creation faster instead of adding special caches in separate functions (see also issue23507). But for now this optimization makes attribute access in named tuples 30% faster, and this is good argument for keeping it. |
|
Date |
User |
Action |
Args |
2016-04-21 06:40:24 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, brett.cannon, rhettinger, ncoghlan, eric.snow, random832, xiang.zhang |
2016-04-21 06:40:24 | serhiy.storchaka | set | messageid: <1461220824.57.0.867319760136.issue26811@psf.upfronthosting.co.za> |
2016-04-21 06:40:24 | serhiy.storchaka | link | issue26811 messages |
2016-04-21 06:40:24 | serhiy.storchaka | create | |
|