Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork32.2k
gh-136066: simplifyplatform._platform()
#136069
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
base:main
Are you sure you want to change the base?
Conversation
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.
Can you please provide a benchmark for realistical platforms and some unrealistically big ones?
picnixz commentedJun 28, 2025 • 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.
For realistic ones, there should be no difference (because the strings are REALLY small). For unrealistically big ones, I'll write them. |
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Misc/NEWS.d/next/Library/2025-06-28-11-12-12.gh-issue-136066.WqsKka.rst OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
platform._platform()
platform._platform()
For the benchmarks: ./python -m pyperf timeit -s'import platform; s="-" *1_000_000''platform._platform(s)' On a PGO+LTO build:
|
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.
Awesome results! Thank you!
Uh oh!
There was an error while loading.Please reload this page.
platform._platform
#136066