Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

gh-143414: Implement unique reference tracking for JIT, optimize unpacking of such tuples#144300

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Draft
reidenong wants to merge4 commits intopython:main
base:main
Choose a base branch
Loading
fromreidenong:branch-unique-reference-tracking

Conversation

@reidenong
Copy link
Contributor

@reidenongreidenong commentedJan 28, 2026
edited by bedevere-appbot
Loading

  1. Implements unique reference tracking to references in the JIT Optimizer.
  2. Uses the unique reference tracking to eliminate unnecessary reference counting for uniquely referenced tuples. ex:
x,y,z=f()

Some notes:

  • Only implements the unique reference tracking (and relevant optimization) for tuples in_BUILD_TUPLE, to be extended to other objects in the future
  • Objects are deemed as not uniquely referenced when they are made aliases or duplicated, in uops of_LOAD_FAST_* and_COPY.

Would appreciate any feedback.
Thanks

cocolato reacted with thumbs up emoji
@reidenong
Copy link
ContributorAuthor

reidenong commentedJan 28, 2026
edited
Loading

Discussed with@Fidget-Spinner, will reopen the PR after implementingPyStackRef_CLOSE_SPECIALIZED for_UNPACK_SEQUENCE_UNIQUE_TUPLE

@reidenongreidenong marked this pull request as draftJanuary 28, 2026 18:38
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@markshannonmarkshannonAwaiting requested review from markshannonmarkshannon is a code owner

@tomasr8tomasr8Awaiting requested review from tomasr8tomasr8 is a code owner

@Fidget-SpinnerFidget-SpinnerAwaiting requested review from Fidget-SpinnerFidget-Spinner is a code owner

@savannahostrowskisavannahostrowskiAwaiting requested review from savannahostrowskisavannahostrowski is a code owner

1 more reviewer

@cocolatococolatococolato left review comments

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@reidenong@cocolato

[8]ページ先頭

©2009-2026 Movatter.jp