Message344255
I am not sure that this optimization should be added. sum(pred(x) for x in data) will be always slower than sum(1 for x in data if pred(x)) because more items is passed to sun() in the former case. It can be considered as an anti-pattern. |
|
Date |
User |
Action |
Args |
2019-06-02 06:08:31 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, rhettinger, josh.r |
2019-06-02 06:08:31 | serhiy.storchaka | set | messageid: <1559455711.35.0.473338525017.issue36781@roundup.psfhosted.org> |
2019-06-02 06:08:31 | serhiy.storchaka | link | issue36781 messages |
2019-06-02 06:08:31 | serhiy.storchaka | create | |
|