Title: bpo-46329: Avoid `PUSH_NULL` when followed by `LOAD_GLOBAL` by markshannon · Pull Request #31933 · python/cpython · GitHub
Open Graph Title: bpo-46329: Avoid `PUSH_NULL` when followed by `LOAD_GLOBAL` by markshannon · Pull Request #31933 · python/cpython
X Title: bpo-46329: Avoid `PUSH_NULL` when followed by `LOAD_GLOBAL` by markshannon · Pull Request #31933 · python/cpython
Description: Uses the low bit of LOAD_GLOBAL's oparg to indicate whether it should push a NULL first. len(alist) now compiles to LOAD_GLOBAL 1 (NULL + len) LOAD_FAST 0 (alist) PRECALL 1 CALL 1 This reduces the total number of VM instructions executed by ~2%. The benchmark results show an unlikely 3% speedup, probably just one of those random build variations. https://bugs.python.org/issue46329
Open Graph Description: Uses the low bit of LOAD_GLOBAL's oparg to indicate whether it should push a NULL first. len(alist) now compiles to LOAD_GLOBAL 1 (NULL + len) LOAD_FAST 0 (alist) P...
X Description: Uses the low bit of LOAD_GLOBAL's oparg to indicate whether it should push a NULL first. len(alist) now compiles to LOAD_GLOBAL 1 (NULL + len) LOAD_FAST 0 (alis...
Opengraph URL: https://github.com/python/cpython/pull/31933
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:484a5e6d-3c42-07a1-46a3-55d590be3723 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | D8B2:DFD60:3C3FF2A:5358BA7:6A54CAED |
| html-safe-nonce | 308bba8a15c28fc34378fd0bfb20b7da8e7a8a20a760b12f241ae347b0b6bee2 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEOEIyOkRGRDYwOjNDM0ZGMkE6NTM1OEJBNzo2QTU0Q0FFRCIsInZpc2l0b3JfaWQiOiI2MTk3NzM0NjcwMDE0NDAxMjYxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | d31fa896318eb7123ed9db73d91ad50ec78e6aae5fd1332bdf8c41467e7aac89 |
| hovercard-subject-tag | pull_request:881389404 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,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/python/cpython/pull/31933/files |
| twitter:image | https://avatars.githubusercontent.com/u/9448417?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/9448417?s=400&v=4 |
| og:image:alt | Uses the low bit of LOAD_GLOBAL's oparg to indicate whether it should push a NULL first. len(alist) now compiles to LOAD_GLOBAL 1 (NULL + len) LOAD_FAST 0 (alist) P... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 6e5f2e6ff3f430aa60a674066f957bca9f2106017e1b68126417422b58ce6e1e |
| turbo-cache-control | no-preview |
| diff-view | unified |
| 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 full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | be4d48619391052c9d312c7b587bb2ac38a97f57 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width