Title: gh-146558: optimize dict access with objects with known hash by kumaraditya303 · Pull Request #146559 · python/cpython · GitHub
Open Graph Title: gh-146558: optimize dict access with objects with known hash by kumaraditya303 · Pull Request #146559 · python/cpython
X Title: gh-146558: optimize dict access with objects with known hash by kumaraditya303 · Pull Request #146559 · python/cpython
Description: The Python programming language. Contribute to python/cpython development by creating an account on GitHub.
Open Graph Description: I asked Claude to create a benchmark for this, it created the following script which shows a real significant speedup. Benchmark No JIT JIT Speedup dict_get[str] 55.7M/s 70.1M/s +26% dict_...
X Description: I asked Claude to create a benchmark for this, it created the following script which shows a real significant speedup. Benchmark No JIT JIT Speedup dict_get[str] 55.7M/s 70.1M/s +26% dict_...
Opengraph URL: https://github.com/python/cpython/pull/146559
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/commits(.:format) |
| route-controller | pull_requests |
| route-action | commits |
| fetch-nonce | v2:201e8e8e-7090-b8bf-cfd4-7af0ae8b05f7 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 98A0:620C2:822642:AC2886:6A517F19 |
| html-safe-nonce | cf4418c7bd321c0c96b1eb01d0828a3ba398486692bc1ad66d1cf2bc93eb4668 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5OEEwOjYyMEMyOjgyMjY0MjpBQzI4ODY6NkE1MTdGMTkiLCJ2aXNpdG9yX2lkIjoiNjQ2MjU2MTk2NjkzODQ4ODYwMSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 6d2ab68f66e42c8088e3d6dc8c1802a58cc5676758efaa227722d6e2fe6364fb |
| hovercard-subject-tag | pull_request:3460355401 |
| 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/146559/commits |
| twitter:image | https://opengraph.githubassets.com/1a39ecfbaeeb0aeae897135b37b97896c5f7bc2fb217590c681386e3c0f94db4/python/cpython/pull/146559 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/1a39ecfbaeeb0aeae897135b37b97896c5f7bc2fb217590c681386e3c0f94db4/python/cpython/pull/146559 |
| og:image:alt | I asked Claude to create a benchmark for this, it created the following script which shows a real significant speedup. Benchmark No JIT JIT Speedup dict_get[str] 55.7M/s 70.1M/s +26% dict_... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | kumaraditya303 |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| turbo-cache-control | no-cache |
| 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 | d01c62704ef24df49056c63892a149b775e1353d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width