Message408116
I'm not sure about the original 10:1 difference in 3.10, but in 3.11, the 2:1 difference might be due to the PEP 659 machinery optimizing for int * int, and float * float cases (see BINARY_OP_MULTIPLY_INT and BINARY_OP_MULTIPLY_FLOAT in ceval).
Last I recall, these were slightly faster than their unspecialized counterparts as they have less overhead in C function calls. Meanwhile, none of the power operations are optimized via PEP 659 machinery at the moment. |
|
Date |
User |
Action |
Args |
2021-12-09 13:12:12 | kj | set | recipients:
+ kj, rhettinger, mark.dickinson, Dennis Sweeney |
2021-12-09 13:12:12 | kj | set | messageid: <1639055532.68.0.336433919684.issue46020@roundup.psfhosted.org> |
2021-12-09 13:12:12 | kj | link | issue46020 messages |
2021-12-09 13:12:12 | kj | create | |
|