Message340078
The bytecode interpreter uses an inline function call_function() to handle most function calls. To check for profiling, call_function() needs to call to PyThreadState_GET().
In the reference implementation of PEP 590, I saw that we can remove these PyThreadState_GET() calls by passing the thread state from the main eval loop to call_function().
I suggest to apply this optimization now, because they make sense independently of PEP 580 and PEP 590 and to give a better baseline for performance comparisons. |
|
| Date |
User |
Action |
Args |
| 2019-04-12 16:25:26 | jdemeyer | set | recipients:
+ jdemeyer, petr.viktorin, Mark.Shannon |
| 2019-04-12 16:25:26 | jdemeyer | set | messageid: <[email protected]> |
| 2019-04-12 16:25:26 | jdemeyer | link | issue36616 messages |
| 2019-04-12 16:25:25 | jdemeyer | create | |
|