This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Dennis Sweeney
Recipients Dennis Sweeney, gvanrossum, lukasz.langa, rhettinger, serhiy.storchaka
Date 2021-09-23.03:19:36
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1632367176.91.0.997931741015.issue45026@roundup.psfhosted.org>
In-reply-to
Content
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.
History
Date User Action Args
2021-09-23 03:19:36Dennis Sweeneysetrecipients: + Dennis Sweeney, gvanrossum, rhettinger, lukasz.langa, serhiy.storchaka
2021-09-23 03:19:36Dennis Sweeneysetmessageid: <1632367176.91.0.997931741015.issue45026@roundup.psfhosted.org>
2021-09-23 03:19:36Dennis Sweeneylinkissue45026 messages
2021-09-23 03:19:36Dennis Sweeneycreate