-
-
Notifications
You must be signed in to change notification settings - Fork 32k
gh-117349: Micro-optimize a few os.path
functions
#117350
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
Merged
Merged
Changes from all commits
Commits
Show all changes
50 commits
Select commit
Hold shift + click to select a range
c90a883
Speed up `posixpath.ismount`
nineteendo 5984959
Speed up `posixpath.expanduser`
nineteendo 833ddc9
Speed up `posixpath.normpath`
nineteendo a4d9fcb
Refactor `posixpath.expandvars` & `ntpath.commonpath`
nineteendo b853d4d
Remove start- & endswith
nineteendo a8984dc
Remove `startswith`
nineteendo 78929b0
Remove `isabs` calls
nineteendo afc7bbc
Rename result of `splitroot`
nineteendo f5bbaf6
Refactor `os.path`
nineteendo e740f10
fix unbound variable
nineteendo d02c726
hardcode constants like documented
nineteendo b794897
📜🤖 Added by blurb_it.
blurb-it[bot] c2c04bf
Fix typo
nineteendo 7c9dcae
exclude stylistic-only changes
nineteendo d35783c
Revert renaming
nineteendo eb24723
Revert unnesting
nineteendo 5ca9ea3
Revert further changes
nineteendo 3e4d0e3
Revert renaming
nineteendo 72babad
Remove newline
nineteendo abfe46c
Remove slice
nineteendo 2a055ba
Speedup `posixpath.ismount`
nineteendo 759b189
Update Lib/posixpath.py
nineteendo cca16ba
Revert unnesting
nineteendo 7e21192
Merge branch 'speedup-os.path' of https://github.com/nineteendo/cpyth…
nineteendo 581862e
Remove line breaks
nineteendo d2987fd
Revert `ntpath.expandvars`
nineteendo 1866544
Unexpose `posixpath._normpath_fallback`
nineteendo 4a01123
Update Lib/posixpath.py
nineteendo 67f0620
Indent for git blame
nineteendo 9905730
Merge branch 'speedup-os.path' of https://github.com/nineteendo/cpyth…
nineteendo 9d18f8c
Move back in except
nineteendo 9520cc6
Revert changing comment
nineteendo de4b09e
Split try except blocks
nineteendo 6f8e7d7
Update Misc/NEWS.d/next/Core and Builtins/2024-03-29-15-04-13.gh-issu…
nineteendo 47a4b57
Update ACKS
nineteendo 48f2971
Remove `_get_sep()` call
nineteendo 33259d9
Revert unnecessary change
nineteendo 4568cd1
Revert insignificant changes
nineteendo 1382f49
Fix incorrect change
nineteendo a81dc6e
Revert unnesting
nineteendo e6cb4a3
Move to new pull request
nineteendo 67ec9a6
assign `devnull` first
nineteendo 87d43b8
speedup `posixpath.realpath`
nineteendo 6c8901a
Speedup `ntpath.isreserved()`
nineteendo 7940a64
Revert starts- & endswith
nineteendo e637698
Revert `len()` call
nineteendo b5fdd27
;(
nineteendo c923e49
Merge branch 'main' into speedup-os.path
nineteendo 887f3c1
Replace definition of colon
nineteendo e3ace2f
Merge branch 'speedup-os.path' of https://github.com/nineteendo/cpyth…
nineteendo File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
Misc/NEWS.d/next/Core and Builtins/2024-03-29-15-04-13.gh-issue-117349.OB9kQQ.rst
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Optimise several functions in :mod:`os.path`. |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.