|
I'm still working on measuring the optimization performance. So far, the benefit is not obvious. |
* Add _PyRuntimeState.gilstate.interp_current. * _PyThreadState_Swap() now sets interp_current. PyThreadState_Swap(NULL) sets interp_current to NULL.
Add _PyRuntimeState.gilstate.interp_current.
_PyThreadState_Swap() now sets interp_current.
PyThreadState_Swap(NULL) sets interp_current to NULL.
Replace _PyThreadState_GET() with _PyInterpreterState_GET() in:
https://bugs.python.org/issue39465