Title: Too many misses in BINARY_SUBSCR_LIST_INT · Issue #100188 · python/cpython · GitHub
Open Graph Title: Too many misses in BINARY_SUBSCR_LIST_INT · Issue #100188 · python/cpython
X Title: Too many misses in BINARY_SUBSCR_LIST_INT · Issue #100188 · python/cpython
Description: The expression my_list[-1] gets specialized to BINARY_SUBSCR_LIST_INT every time, then it gets deoptimized every time This leads to 31%ish of BINARY_SUBSCR_LIST_INT executions being misses (on some programs anyway). Edit: this stat was p...
Open Graph Description: The expression my_list[-1] gets specialized to BINARY_SUBSCR_LIST_INT every time, then it gets deoptimized every time This leads to 31%ish of BINARY_SUBSCR_LIST_INT executions being misses (on some...
X Description: The expression my_list[-1] gets specialized to BINARY_SUBSCR_LIST_INT every time, then it gets deoptimized every time This leads to 31%ish of BINARY_SUBSCR_LIST_INT executions being misses (on some...
Opengraph URL: https://github.com/python/cpython/issues/100188
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Too many misses in BINARY_SUBSCR_LIST_INT","articleBody":"The expression `my_list[-1]` [gets specialized](https://github.com/python/cpython/blob/70be5e42f6e288de32e0df3c77ac22a9ddf1a74b/Python/specialize.c#L1263-L1267) to `BINARY_SUBSCR_LIST_INT` every time, then it [gets deoptimized every time](https://github.com/python/cpython/blob/70be5e42f6e288de32e0df3c77ac22a9ddf1a74b/Python/bytecodes.c#L396)\r\n\r\n~~This leads to 31%ish of `BINARY_SUBSCR_LIST_INT` executions being misses (on some programs anyway).~~ Edit: this stat was probably not accurate.\r\n\r\nShould be an easy fix.\r\n\r\n\u003c!-- gh-linked-prs --\u003e\r\n### Linked PRs\r\n* gh-100189\r\n\u003c!-- /gh-linked-prs --\u003e\r\n","author":{"url":"https://github.com/sweeneyde","@type":"Person","name":"sweeneyde"},"datePublished":"2022-12-12T05:23:05.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/100188/cpython/issues/100188"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:4b9e8511-5638-84d9-e062-9f6267be6e8d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A62E:564B0:14AA163:1D23416:69691A97 |
| html-safe-nonce | 92e1a4e4980db97e320417fa623e5b72a19fe4a9d28b921fcf9b143b4a54b22d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNjJFOjU2NEIwOjE0QUExNjM6MUQyMzQxNjo2OTY5MUE5NyIsInZpc2l0b3JfaWQiOiI3MzU5NTc2NjI4NDA2MDY1ODE1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 9e512ff696a58ccdfd98af15cf5fe41c27e82b69d3dc7eabbaad049a27745774 |
| hovercard-subject-tag | issue:1491002660 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/100188/issue_layout |
| twitter:image | https://opengraph.githubassets.com/fe1fed21de8af300d7d24e6aa48fa563cf37bf20630a2a0dae911e54f37273c7/python/cpython/issues/100188 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/fe1fed21de8af300d7d24e6aa48fa563cf37bf20630a2a0dae911e54f37273c7/python/cpython/issues/100188 |
| og:image:alt | The expression my_list[-1] gets specialized to BINARY_SUBSCR_LIST_INT every time, then it gets deoptimized every time This leads to 31%ish of BINARY_SUBSCR_LIST_INT executions being misses (on some... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | sweeneyde |
| hostname | github.com |
| expected-hostname | github.com |
| None | 0e60568924309a021b51adabdce15c2a2f285b556f3130d1a2fa2a5bce11c55f |
| turbo-cache-control | no-preview |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | dd206f7ed6207863172be4a783826e86bd2375c3 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width