GeezerVison is showing github.com — gh-111786: Use separate opcode vars for Tier 1 and Tier 2 by mdboom · Pull Request #112289 · python/cpython
Conversation
mdboom
commented
Nov 20, 2023
•
edited by bedevere-app
Bot
Loading
Uh oh!
There was an error while loading. Please reload this page.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
neonene reacted with heart emoji
This makes Windows about 3% faster on pyperformance benchmarks.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, looks very straightforward.
Though based on our offline conversation, did you find out whether Windows PGO uses -E?
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Comment on lines
+692
to
+693
|
|
uint8_t opcode; /* Current opcode */
|
|
|
int oparg; /* Current opcode argument, if any */
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Heh, I would have kept the comments at the same column, so you don't appear to be editing the oparg line. :-)
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure -- I think my editor did something magical.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
mdboom
commented
Nov 20, 2023
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
Though based on our offline conversation, did you find out whether Windows PGO uses -E?
I don't know, but I think that's orthogonal to this. Currently on the benchmarking infrastructure, we only pass the PYTHON_UOPS env variable to pyperformance, so it definitely has no effect during build. Independently of this, I measured what happens when you force Tier 2 on during the build, and it is about 1% faster.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Though based on our offline conversation, did you find out whether Windows PGO uses -E?
I don't know, but I think that's orthogonal to this. Currently on the benchmarking infrastructure, we don't pass the PYTHON_UOPS env variable to pyperformance, so it definitely has no effect during build.
Ah, sorry. Should I merge this then?
Independently of this, I measured what happens when you force Tier 2 on during the build, and it is about 1% faster.
1% faster than without Tier 2, or 1% faster than main?
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Though based on our offline conversation, did you find out whether Windows PGO uses -E?
I don't know, but I think that's orthogonal to this. Currently on the benchmarking infrastructure, we don't pass the PYTHON_UOPS env variable to pyperformance, so it definitely has no effect during build.
Ah, sorry. Should I merge this then?
Yeah, I think that's fine.
Independently of this, I measured what happens when you force Tier 2 on during the build, and it is about 1% faster.
1% faster than without Tier 2, or 1% faster than main?
When you turn Tier 2 on during build (PGO collection), it's 1% faster than if you don't. (Using Tier 2 at runtime in both cases).
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
When you turn Tier 2 on during build (PGO collection), it's 1% faster than if you don't. (Using Tier 2 at runtime in both cases).
That's great news!
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
aisk
pushed a commit
to aisk/cpython
that referenced
this pull request
Feb 11, 2024
…on#112289)
This makes Windows about 3% faster on pyperformance benchmarks.
Glyphack
pushed a commit
to Glyphack/cpython
that referenced
this pull request
Sep 2, 2024
…on#112289)
This makes Windows about 3% faster on pyperformance benchmarks.
Reviewers
markshannon
Awaiting requested review from markshannon
markshannon is a code owner
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
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.
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.
|