Message402477
I benchmarked GH-27986 and GH-28176 on "for i in range(10000): pass" and found that GH-27986 was faster for this (likely most common) case of relatively small integers.
Mean +- std dev: [main] 204 us +- 5 us -> [GH-27986] 194 us +- 4 us: 1.05x faster
Mean +- std dev: [main] 204 us +- 5 us -> [GH-28176] 223 us +- 6 us: 1.09x slower
It's possible to have different implementations for small/large integers, but IMO it's probably best to keep consistency and go with GH-27986. |
|
Date |
User |
Action |
Args |
2021-09-23 03:19:36 | Dennis Sweeney | set | recipients:
+ Dennis Sweeney, gvanrossum, rhettinger, lukasz.langa, serhiy.storchaka |
2021-09-23 03:19:36 | Dennis Sweeney | set | messageid: <1632367176.91.0.997931741015.issue45026@roundup.psfhosted.org> |
2021-09-23 03:19:36 | Dennis Sweeney | link | issue45026 messages |
2021-09-23 03:19:36 | Dennis Sweeney | create | |
|