Message387448
PyLong_Check is two memory reads, bits operation, and comparison with 0. And one non-inlined function call when limited API is used. PyLong_CheckExact is only one memory read and comparison.
I am not sure that the difference is significant enough to justify the optimization. I would require evidences that this optimization is significant if it would be proposed now. But the code is already written in such form, and I am not sure that it is worth to spend our time to change it. |
|
Date |
User |
Action |
Args |
2021-02-21 10:03:35 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, berker.peksag, erlendaasland |
2021-02-21 10:03:35 | serhiy.storchaka | set | messageid: <1613901815.83.0.983153067745.issue43267@roundup.psfhosted.org> |
2021-02-21 10:03:35 | serhiy.storchaka | link | issue43267 messages |
2021-02-21 10:03:35 | serhiy.storchaka | create | |
|