Uh oh!
There was an error while loading. Please reload this page.
gh-124153: Remove _PyType_GetModuleByDef2 private function - #124261
Conversation
Unlike PyType_GetModuleByDef(), this uses PyType_HasFeature() for differentiation.
This will not be inlined, but hopefully 4% faster on Windows PGO. The forceinline version was less efficient (2% faster).
Uh oh!
There was an error while loading. Please reload this page.
PyType_GetModuleByDef() is now slower.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
encukou
commented
Sep 24, 2024
Looks like this removes the only call to |
vstinner
commented
Sep 24, 2024
neonene
commented
Sep 24, 2024
vstinner
commented
Sep 24, 2024
Why not removing _PyType_GetModuleByDef2() body as well? |
Py_tp_token slot and PyType_GetBaseByToken() in a few modules_PyType_GetModuleByDef2 private functionneonene
commented
Sep 25, 2024
(Does it really make sense to remove |
encukou
commented
Sep 25, 2024
To be honest I don't follow too closely the order in which the changes here should be made/merged. If this removes the last call to |
PyType_GetBaseByTokenfunction withPy_tp_tokenslot #124153