Message405589
The PyObject_TypeCheck() macro is used in performance critical cases. If it is not the case the PyType_IsSubtype() function can be used. Adding yet check in PyType_IsSubtype() will slow down more performance sensitive cases in which PyObject_TypeCheck() is used and speed up less performance sensitive cases. So there is no reason to add it. |
|
Date |
User |
Action |
Args |
2021-11-03 09:01:16 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, Dennis Sweeney, itamaro, arhadthedev |
2021-11-03 09:01:16 | serhiy.storchaka | set | messageid: <1635930076.31.0.507371365182.issue45697@roundup.psfhosted.org> |
2021-11-03 09:01:16 | serhiy.storchaka | link | issue45697 messages |
2021-11-03 09:01:16 | serhiy.storchaka | create | |
|