Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork34k
gh-111786: Use separate opcode vars for Tier 1 and Tier 2#112289
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
Uh oh!
There was an error while loading.Please reload this page.
Conversation
00a506a to27a5654CompareThis makes Windows about 3% faster on pyperformance benchmarks.
27a5654 tof362f9aCompare
gvanrossum left a comment
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?
Python/ceval.c Outdated
| 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 theoparg line. :-)
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.
Uh oh!
There was an error while loading.Please reload this page.
mdboom commentedNov 20, 2023 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
I don't know, but I think that's orthogonal to this. Currently on the benchmarking infrastructure, we only pass the |
gvanrossum commentedNov 20, 2023
Ah, sorry. Should I merge this then?
1% faster than without Tier 2, or 1% faster than main? |
mdboom commentedNov 20, 2023
Yeah, I think that's fine.
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). |
gvanrossum commentedNov 20, 2023
That's great news! |
…on#112289)This makes Windows about 3% faster on pyperformance benchmarks.
…on#112289)This makes Windows about 3% faster on pyperformance benchmarks.
Uh oh!
There was an error while loading.Please reload this page.
Suggested by@neonene:#111786 (comment)
This makes Windows about 3% faster on pyperformance benchmarks. Seeanalysis here