GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||
GeezerVison is showing github.com — gh-124688: _decimal: Get a module state from ctx objects for performance by neonene · Pull Request #124691 · python/cpython Conversation
|
|
Do you have a benchmark showing the effect of this change? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
My different PGO builds says 3-5% faster on the |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Would you mind to share your results (before/after, difference)? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
On release builds, the result was as fast as the global state access: #123100 (comment) ( |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
Picked a few a) main with d69529d restored (hard to evaluate main as-is) b) (a) with some patches c) (b) with 1 diff in |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Sorry, I don't know how to read your 6 benchmarks. I don't understand what you compared. I don't know what are "some patches" nor why you mention PyType_GetBaseByToken(), it doesn't help me to compare this PR. So I just compared the main branch to this PR: Nice! 1.09x faster is worth it. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
I added the skip news since Victor enabled auto-merge. If a NEWS entry is really needed, we can add it later in a separate commit though. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Merged, thanks @neonene! |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.