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.
gh-100188: Reduce misses in BINARY_SUBSCR_(LIST/TUPLE)_INT (#100189)
Thanks for finding and fixing!
Merged main into regmachine branch (#50)
Activity
gh-100188: Reduce misses in BINARY_SUBSCR_(LIST/TUPLE)_INT (#100189)
hauntsaninja commentedon Dec 21, 2022
Thanks for finding and fixing!
Merged main into regmachine branch (#50)