-
-
Notifications
You must be signed in to change notification settings - Fork 32.2k
gh-136066: simplify platform._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 our terms of service and privacy 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?
For realistic ones, there should be no difference (because the strings are REALLY small). For unrealistically big ones, I'll write them. |
Misc/NEWS.d/next/Library/2025-06-28-11-12-12.gh-issue-136066.WqsKka.rst
Outdated
Show resolved
Hide resolved
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!
platform._platform
#136066