Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.3k
gh-117648: Improve performance of os.join by replacing map with a direct method …#117654
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
…callCo-authored-by: Pieter Eendebak <pieter.eendebak@gmail.com>
erlend-aasland 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.
The change itself is minimal, code readability/maintainability is not affected, and the speedup seems good enough to warrant an approval.
I still recommend redirecting your enthusiasm towards triaging the existing issues in the bug-tracker and helping fixing real bugs instead of looking for micro-optimisations. See my comment#117634 (comment).
Replace map() with a method call in the loop body.Co-authored-by: Pieter Eendebak <pieter.eendebak@gmail.com>
Uh oh!
There was an error while loading.Please reload this page.
…call
Benchmark
ntpath.py
script
posixpath.py
script