GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — JIT optimize dict access with consts with known hash · Issue #146558 · python/cpython

JIT optimize dict access with consts with known hash #146558

New issue
Copy link
New issue
Copy link
Closed
Closed
JIT optimize dict access with consts with known hash#146558
Copy link
Labels
interpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)performancePerformance or resource usagePerformance or resource usagetopic-JITtype-featureA feature request or enhancementA feature request or enhancement

Description

@kumaraditya303
kumaraditya303
opened on Mar 28, 2026
Issue body actions

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-146558: optimize dict access with objects with known hash #146559
Reacted by M. Kocher and Oxicid

Activity

  1. kumaraditya303
    added
    performancePerformance or resource usagePerformance or resource usage
    topic-JIT
    on Mar 28, 2026
  2. picnixz
    added
    interpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)
    type-featureA feature request or enhancementA feature request or enhancement
    on Mar 28, 2026
  3. kumaraditya303
    closed this as completedon Mar 30, 2026
  4. kumaraditya303
    added a commit that references this issue on Mar 30, 2026

    gh-146558: JIT optimize dict access for objects with known hash (#146559

    8e9d21c
  5. maurycy
    added a commit that references this issue on Mar 30, 2026

    Merge remote-tracking branch 'upstream/main' into tachyon-ndjson-kole…

    6a0ea81
  6. clin1234
    added a commit that references this issue on Apr 16, 2026

    pythongh-146558: JIT optimize dict access for objects with known hash (…

    96c37e7
  7. ljfp
    added a commit that references this issue on Apr 25, 2026

    pythongh-146558: JIT optimize dict access for objects with known hash (…

    c8eb289
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    interpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)performancePerformance or resource usagePerformance or resource usagetopic-JITtype-featureA feature request or enhancementA feature request or enhancement

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.