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
GH-94163: Add BINARY_SLICE and STORE_SLICE instructions. #94168
Conversation
markshannon
commented
Jun 23, 2022
•
edited by bedevere-bot
edited by bedevere-bot
- Issue: gh-94163
Pyperformance shows a nominally slowdown, but in the noise. |
The dis doc update is missing. |
@@ -479,6 +479,20 @@ the original TOS1. | |||
Implements ``del TOS1[TOS]``. | |||
|
|||
|
|||
.. opcode:: BINARY_SLICE | |||
|
|||
Implements ``TOS = TOS2[TOS1:TOS]``. |
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.
I think the preamble to this section in lines 449-456 needs to be updated because it only refers to TOS and TOS1.
@@ -13,6 +13,8 @@ extern "C" { | |||
|
|||
extern void _PySlice_Fini(PyInterpreterState *); | |||
|
|||
extern PyObject * | |||
_PyBuildSlice_Consume2(PyObject *start, PyObject *stop); |
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.
Consume here refers to references of start and stop? Can it be more explicit, maybe _PyBuildSlice_ConsumeRefs
?
@@ -0,0 +1,3 @@ | |||
Add BINARY_SLICE and STORE_SLICE instructions for more efficient handling |
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.
Add BINARY_SLICE and STORE_SLICE instructions for more efficient handling | |
Add :opcode:`BINARY_SLICE` and :opcode:`STORE_SLICE` instructions for more efficient handling |
If you want to schedule another build, you need to add the " |
Failures on the |