Skip to content

GH-132554: Specialize GET_ITER and FOR_ITER for range #135063

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 23 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
4e34e27
Specialize GET_ITER
markshannon Apr 30, 2025
37757c6
Add news
markshannon Apr 30, 2025
658a422
Specialize FOR_ITER for ranges using tagged ints
markshannon Apr 30, 2025
8cf4e6e
Allow range starts other than zero
markshannon May 27, 2025
11117b4
Specialize GET_ITER for range
markshannon May 28, 2025
d6f033f
Fix assert
markshannon May 28, 2025
4679ccc
Fix GET_ITER stats
markshannon May 29, 2025
06c1680
Fix stats for FOR_ITER specialization
markshannon Jun 3, 2025
15cb250
Remove unused function
markshannon Jun 3, 2025
89d5d85
Correct comment
markshannon Jun 3, 2025
9f688e7
Fix merge glitch
markshannon Jun 3, 2025
7325b44
Fix tier 2 unspecialized iteration over ranges
markshannon Jun 3, 2025
e5f666d
Make functions inline for the JIT
markshannon Jun 3, 2025
8efce0a
Make PyStackRef_BoxInt inline for JIT
markshannon Jun 3, 2025
94ad6f9
Merge branch 'main' into specialize-for-iter-range
markshannon Jun 6, 2025
7ba5753
Fix PyStackRef_TaggedIntLessThan for Py_STACKREF_DEBUG
markshannon Jun 6, 2025
7553e10
Merge branch 'main' into specialize-for-iter-range
markshannon Jun 6, 2025
baf4722
Merge branch 'main' into specialize-for-iter-range
markshannon Jun 9, 2025
122a816
Cleanup _ITER_JUMP_TUPLE
markshannon Jun 10, 2025
9b65402
Merge branch 'main' into specialize-for-iter-range
markshannon Jun 13, 2025
4e44e85
Extend iteration by index to strings and bytes
markshannon Jun 16, 2025
c41d531
Streamline non-specialized FOR_ITER
markshannon Jun 16, 2025
47520ee
Convert INSTRUMENTED_FOR_ITER into macro.
markshannon Jun 17, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add news
  • Loading branch information
markshannon committed Jun 3, 2025
commit 37757c635ccf225ed9cf4585a0043eeeeb695203
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Specialize :opcode:`GET_ITER` for lists, tuples and any iterator.