Skip to content

gh-134584: Eliminate redundant refcounting from _CALL_LEN - #136104

Merged
corona10 merged 7 commits into
python:mainfrom
corona10:gh-134584
Dec 11, 2025
Merged

corona10 merged 7 commits into
python:mainfrom
corona10:gh-134584

Conversation

@corona10

@corona10 corona10 commented Jun 29, 2025 •

Copy link
Copy Markdown
Member
@Fidget-Spinner

Copy link
Copy Markdown
Member

Thanks! We need to wait until Mark's TOS caching PR is merged for this to be a speedup (I explained on the main issue), so lets wait for now.

@Fidget-Spinner Fidget-Spinner left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Could you please re-run make regen-cases on this after merging main in?

You can merge after.

Comment thread Python/bytecodes.c Outdated
/* len(o) */
(void)null;
STAT_INC(CALL, hit);
INPUTS_DEAD();

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be moved down to right before res = PyStackRef_FromPyObjectSteal(res_o);

Comment thread Python/bytecodes.c Resolved
@corona10

Copy link
Copy Markdown
Member Author

@Fidget-Spinner Done :)

@Fidget-Spinner

Copy link
Copy Markdown
Member

@corona10 sorry I just noticed something else wrong, once you fix that you can merge. Thanks!

@corona10
corona10 enabled auto-merge (squash) December 11, 2025 14:57
@corona10
corona10 merged commit a275385 into python:main Dec 11, 2025
@corona10
corona10 deleted the gh-134584 branch December 11, 2025 17:00
Fidget-Spinner added a commit to Fidget-Spinner/cpython that referenced this pull request Dec 11, 2025
Fidget-Spinner added a commit to Fidget-Spinner/cpython that referenced this pull request Dec 11, 2025
fatelei pushed a commit to fatelei/cpython that referenced this pull request Dec 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

2 participants