Skip to content

GH-122821: Simplify compilation of while statements to ensure consistency of offsets for sys.monitoring - #122934

Merged
markshannon merged 4 commits into
python:mainfrom
faster-cpython:fix-122821
Aug 13, 2024
Merged

GH-122821: Simplify compilation of while statements to ensure consistency of offsets for sys.monitoring#122934
markshannon merged 4 commits into
python:mainfrom
faster-cpython:fix-122821

Conversation

@markshannon

@markshannonmarkshannon commented Aug 12, 2024

Copy link
Copy Markdown
Member

@markshannon

Copy link
Copy Markdown
MemberAuthor

Performance on tier 1 maybe shows a slight (<1%) slowdown (it might be noise).
But that's a worst case, as tier2 should be unaffected (the extra instruction will be removed).

I'm not concerned by any possible tier 1 slowdown, as we are focusing our efforts on tier 2.

@pythonpython deleted a comment from bedevere-botAug 12, 2024
@iritkatriel

iritkatriel commented Aug 12, 2024

Copy link
Copy Markdown
Member

It would be good to add a test in test_monitoring about the branch location issue.

@picnixzpicnixz 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.

A minor nitpick.

…e-122821.WnAzTK.rst
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
@markshannon
markshannon merged commit fe23f8e into python:mainAug 13, 2024
@picnixz

Copy link
Copy Markdown
Member

@markshannon Wouldn't this need to be backported to 3.13 as well? (or maybe you are creating the backport manually?)

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@markshannon@iritkatriel@picnixz