Title: Micro-optimize list index range checks by rhettinger · Pull Request #9784 · python/cpython · GitHub
Open Graph Title: Micro-optimize list index range checks by rhettinger · Pull Request #9784 · python/cpython
X Title: Micro-optimize list index range checks by rhettinger · Pull Request #9784 · python/cpython
Description: Old code _list_item: testq %rsi, %rsi js L282 cmpq %rsi, 16(%rdi) jg L283 ... L283: movq 24(%rdi), %rax movq (%rax,%rsi,8), %rax addq $1, (%rax) ret New code _list_item: cmpq 16(%rdi), %rsi jb L282 ... L282: movq 24(%rdi), %rax movq (%rax,%rsi,8), %rax addq $1, (%rax) ret
Open Graph Description: Old code _list_item: testq %rsi, %rsi js L282 cmpq %rsi, 16(%rdi) jg L283 ... L283: movq 24(%rdi), %rax movq (%rax,%rsi,8), %rax addq $1, (%rax) ...
X Description: Old code _list_item: testq %rsi, %rsi js L282 cmpq %rsi, 16(%rdi) jg L283 ... L283: movq 24(%rdi), %rax movq (%rax,%rsi,8), %rax addq $1, (%rax) ...
Opengraph URL: https://github.com/python/cpython/pull/9784
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/checks(.:format) |
| route-controller | pull_requests |
| route-action | checks |
| fetch-nonce | v2:356bd033-f216-1322-86dd-18c194a184ba |
| current-catalog-service-hash | 87dc3bc62d9b466312751bfd5f889726f4f1337bdff4e8be7da7c93d6c00a25a |
| request-id | DD3E:3E22DA:FFFBF8:160C0C3:696A8A85 |
| html-safe-nonce | 35cde163dcd15edd997172fee0004891810de2c9ec14cdc3fa3ef3145308612b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERDNFOjNFMjJEQTpGRkZCRjg6MTYwQzBDMzo2OTZBOEE4NSIsInZpc2l0b3JfaWQiOiI2MDM5MDEwMzE4MTY5NTc0MDIxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 8569d2baf1c7be6a1d4b377f2473efcd5a5c192a846fc0966e6af389223ebaaf |
| hovercard-subject-tag | pull_request:221652087 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,checks,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/9784/checks |
| twitter:image | https://avatars.githubusercontent.com/u/1623689?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/1623689?s=400&v=4 |
| og:image:alt | Old code _list_item: testq %rsi, %rsi js L282 cmpq %rsi, 16(%rdi) jg L283 ... L283: movq 24(%rdi), %rax movq (%rax,%rsi,8), %rax addq $1, (%rax) ... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | d2aa6dedd7d97fa651b17c40401f2605f309df5ca5fb659bf0554cf34f1de825 |
| 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 full-width full-width-p-0 |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | c1dbca8981c5e3d6a69bce2f1d289e732b86241d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width