-
-
Notifications
You must be signed in to change notification settings - Fork 33.2k
GH-120507: Lower the BEFORE_WITH and BEFORE_ASYNC_WITH instructions.
#120640
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Optimizer changes LGTM.
|
The four JIT/aarach64 failures are a known issue. |
|
…ructions. (python#120640) * Remove BEFORE_WITH and BEFORE_ASYNC_WITH instructions. * Add LOAD_SPECIAL instruction * Reimplement `with` and `async with` statements using LOAD_SPECIAL
…ructions. (python#120640) * Remove BEFORE_WITH and BEFORE_ASYNC_WITH instructions. * Add LOAD_SPECIAL instruction * Reimplement `with` and `async with` statements using LOAD_SPECIAL
…ructions. (python#120640) * Remove BEFORE_WITH and BEFORE_ASYNC_WITH instructions. * Add LOAD_SPECIAL instruction * Reimplement `with` and `async with` statements using LOAD_SPECIAL
…ructions. (python#120640) * Remove BEFORE_WITH and BEFORE_ASYNC_WITH instructions. * Add LOAD_SPECIAL instruction * Reimplement `with` and `async with` statements using LOAD_SPECIAL
|
This added a bunch macros without a Py/_Py prefix to public headers. |
Removes the
BEFORE_WITHandBEFORE_ASYNC_WITHinstructions, adding the newLOAD_SPECIALinstruction.BEFORE_WITHbecomeswhich may seem rather a lot, but it is much more amenable to optimization.
Negligible performance impact
BEFORE_WITHandBEFORE_ASYNC_WITHto attribute lookups and calls. #120507