Message405575
Based on real world profiling data we collected, a vast amount of `PyType_IsSubtype` calls are coming from `type_call`, when it decides whether `__init__` should run or not.
In the common case, the arguments to this call are identical, but the implementation still walks the MRO.
By returning early for identical types, the common case can be optimized with a non-trivial performance gain. |
|
Date |
User |
Action |
Args |
2021-11-03 01:12:41 | itamaro | set | recipients:
+ itamaro |
2021-11-03 01:12:41 | itamaro | set | messageid: <1635901961.22.0.404899300991.issue45697@roundup.psfhosted.org> |
2021-11-03 01:12:41 | itamaro | link | issue45697 messages |
2021-11-03 01:12:41 | itamaro | create | |
|