Title: JIT optimize dict access with consts with known hash · Issue #146558 · python/cpython · GitHub
Open Graph Title: JIT optimize dict access with consts with known hash · Issue #146558 · python/cpython
X Title: JIT optimize dict access with consts with known hash · Issue #146558 · python/cpython
Description: Currently the JIT does not optimizes dict accesses with ints, strs and other objects whose hash can be pre-computed. The JIT can take advantage of pre-computed hashes to speed up dict lookups. See the PR for more details. Linked PRs gh-1...
Open Graph Description: Currently the JIT does not optimizes dict accesses with ints, strs and other objects whose hash can be pre-computed. The JIT can take advantage of pre-computed hashes to speed up dict lookups. See ...
X Description: Currently the JIT does not optimizes dict accesses with ints, strs and other objects whose hash can be pre-computed. The JIT can take advantage of pre-computed hashes to speed up dict lookups. See ...
Opengraph URL: https://github.com/python/cpython/issues/146558
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"JIT optimize dict access with consts with known hash","articleBody":"Currently the JIT does not optimizes dict accesses with ints, strs and other objects whose hash can be pre-computed. The JIT can take advantage of pre-computed hashes to speed up dict lookups. \n\nSee the PR for more details. \n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-146559\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/kumaraditya303","@type":"Person","name":"kumaraditya303"},"datePublished":"2026-03-28T09:13:55.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/146558/cpython/issues/146558"}
| 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:0693e2d9-d85f-2975-0e58-0d114e3dc2bf |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DB92:139708:4FF111B:707B79D:6A51082D |
| html-safe-nonce | 30f71619c919357ba55be59f55dc16508b3e6ff266d35e931802b4861cb516cc |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQjkyOjEzOTcwODo0RkYxMTFCOjcwN0I3OUQ6NkE1MTA4MkQiLCJ2aXNpdG9yX2lkIjoiMTQxMjk1OTY3ODU1NjYwNDQ2MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 5779d0926d5a81940a7cfb26a9550aacabbc2794f4f716607dd4d9a2030c6202 |
| hovercard-subject-tag | issue:4158838506 |
| 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/146558/issue_layout |
| twitter:image | https://opengraph.githubassets.com/5fbffb75492ba5c70db6b8cc94212f19a5e95fff1df5eb083a440a36232a1e1d/python/cpython/issues/146558 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/5fbffb75492ba5c70db6b8cc94212f19a5e95fff1df5eb083a440a36232a1e1d/python/cpython/issues/146558 |
| og:image:alt | Currently the JIT does not optimizes dict accesses with ints, strs and other objects whose hash can be pre-computed. The JIT can take advantage of pre-computed hashes to speed up dict lookups. See ... |
| 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 | b076e100febaa00374cd89239f915d00dd3187f7c68b12bc2b7688181305344d |
| 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 | 2d129404fc45ea64edb1b98567c53e55b395536f |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width