You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
pythongh-128421: Fix performance regerssion from adding locks to frames
The recent PR pythongh-131479 added locking to `take_ownership` in the free
threading build. The cost is not really the locking -- that path isn't
taken frequently -- but the inlined code causes extra register spills
and slows down RETURN_VALUE, even when it's not taken.
Mark `take_ownership` as `Py_NO_INLINE` to avoid the regression.
0 commit comments