Merge BINARY_SUBSCR_LIST_INT with BINARY_SUBSCR_LIST_TUPLE #349
Unanswered
eendebakpt
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
The implementations of BINARY_SUBSCR_LIST_INT and BINARY_SUBSCR_TUPLE_INT are almost identical. They can be merged, so there is one opcode less. A branch with concept code is https://github.com/python/cpython/compare/main...eendebakpt:combine_list_tuple_opcode?expand=1
Is there value in reducing the number of opcodes in this way?
Microbenchmarks
Results
Beta Was this translation helpful? Give feedback.
All reactions