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
The expression my_list[-1] gets specialized to BINARY_SUBSCR_LIST_INT every time, then it gets deoptimized every time
my_list[-1]
BINARY_SUBSCR_LIST_INT
This leads to 31%ish of BINARY_SUBSCR_LIST_INT executions being misses (on some programs anyway). Edit: this stat was probably not accurate.
Should be an easy fix.
The text was updated successfully, but these errors were encountered:
gh-100188: Reduce misses in BINARY_SUBSCR_(LIST/TUPLE)_INT (#100189)
c18d831
Don't specialize if the index is negative.
Thanks for finding and fixing!
Sorry, something went wrong.
No branches or pull requests
sweeneyde commentedDec 12, 2022
•
edited
The expression
my_list[-1]
gets specialized toBINARY_SUBSCR_LIST_INT
every time, then it gets deoptimized every timeThis leads to 31%ish ofEdit: this stat was probably not accurate.BINARY_SUBSCR_LIST_INT
executions being misses (on some programs anyway).Should be an easy fix.
Linked PRs
The text was updated successfully, but these errors were encountered: