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
{{ message }}
Repository navigation
Fold PUSH_NULL; LOAD_CONST None into GET_AWAITABLE and GET_ANEXT #161875
This saves two dispatches per await and per async for step. Opnames and opargs are unchanged and SEND is untouched, so this is only a stack-effect change, like the one GET_ITER got in gh-132554.
Activity
asvetlov commentedon Nov 12, 2026
Both changes are performance neutral. The boost is positive but very small; it probably doesn't affect any real program.
The main reason (along with unification with
GET_ITERetc.) is preparation for https://discuss.python.org/t/speed-up-async-functions-execution-by-40-by-postponing-a-coroutine-object-creation/109808Even if we don't decide to apply the postponed coroutine creation approach, the change still makes sense on its own.