-
-
Notifications
You must be signed in to change notification settings - Fork 31.9k
gh-117349: Speedup os.path
#117610
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
gh-117349: Speedup os.path
#117610
Conversation
Note that in general, we do not accept PRs with minor speedups like this. Moreover, any code change risks the introduction of new bugs, as the currently failing CI indicates. |
Also note that this is still a work in progress:
|
… into speedup-os.path
Also, in the old code this loop calls Lines 377 to 378 in e338e1a
For long users (>100 characters) the new code is 1.61x faster, which is not a minor speedup. |
Closing this PR, as the linked issue is closed. |
Benchmark:
ntpath.py
posixpath.py
os.path
#117609os.path
#117349