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 — gh-131798: Propagate iterator types from GET_ITER in the JIT by lgeiger · Pull Request #157011 · python/cpython

Conversation

@lgeiger

@lgeiger lgeiger commented Sep 5, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

This PR propagates the iterator result types for dicts and sets in the jit optimiser.
This removes a _GUARD_TYPE_ITERguard when GET_ITER and FOR_ITER are in the same trace.

I ran a small microbenchmark on macOS aarch64 that repeatedly iterated over small dictionaries and sets: it seems like this change shows up a 1% improvement, but results are very noisy.

  • Issue: Better uop coverage in the JIT optimizer #131798

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@lgeiger
pythongh-131798: Propagate iterator types from GET_ITER in the JIT
8cf122d
@lgeiger
lgeiger requested review from Fidget-Spinner, markshannon, savannahostrowski and tomasr8 as code owners September 5, 2026 22:35
@bedevere-app bedevere-app Bot mentioned this pull request Sep 5, 2026
Better uop coverage in the JIT optimizer #131798
Open
@bedevere-app bedevere-app Bot added the awaiting review label Sep 5, 2026
@Fidget-Spinner

Fidget-Spinner commented Sep 6, 2026

Copy link
Copy Markdown
Member

Sorry, all JIT development is currently paused until a PEP is accepted by the steering council. You can search the Python Discourse to learn more!

lgeiger reacted with eyes emoji
All reactions
  • 👀 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@lgeiger

lgeiger commented Sep 6, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor Author

Sorry, all JIT development is currently paused until a PEP is accepted by the steering council. You can search the Python Discourse to learn more!

OK, sorry. Wasn't aware.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This was referenced Oct 20, 2026
gh-131798: Split CHECK_FUNCTION_VERSION into two guards in the JIT #145080
Open
gh-131798: constant fold classmethod and staticmethod in JIT #148331
Closed
gh-131798: JIT inline function pointer address for extended binary op #148384
Closed
gh-131798: Add tier-2 list specialization for STORE_SLICE #149446
Closed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@markshannon markshannon Awaiting requested review from markshannon markshannon is a code owner
@tomasr8 tomasr8 Awaiting requested review from tomasr8 tomasr8 is a code owner
@Fidget-Spinner Fidget-Spinner Awaiting requested review from Fidget-Spinner Fidget-Spinner is a code owner
@savannahostrowski savannahostrowski Awaiting requested review from savannahostrowski

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

awaiting review

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@lgeiger @Fidget-Spinner
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.