diff options
author | Barney Gale <barney.gale@gmail.com> | 2023-05-02 21:51:18 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-02 21:51:18 (GMT) |
commit | 47770a1e91d096fd1c689eb0c78b0f9e76b43639 (patch) | |
tree | 31b43ddb067af17f1313afb8528289cdce94c681 /Misc | |
parent | 1f5384434dce013b5dcf7e7ea3ec5312d13bba72 (diff) | |
download | cpython-47770a1e91d096fd1c689eb0c78b0f9e76b43639.zip cpython-47770a1e91d096fd1c689eb0c78b0f9e76b43639.tar.gz cpython-47770a1e91d096fd1c689eb0c78b0f9e76b43639.tar.bz2 |
GH-104104: Optimize `pathlib.Path.glob()` by avoiding repeated calls to `os.path.normcase()` (GH-104105)
Use `re.IGNORECASE` to implement case-insensitive matching. This
restores behaviour from before GH-31691.
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS.d/next/Library/2023-05-02-21-05-30.gh-issue-104104.9tjplT.rst | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2023-05-02-21-05-30.gh-issue-104104.9tjplT.rst b/Misc/NEWS.d/next/Library/2023-05-02-21-05-30.gh-issue-104104.9tjplT.rst new file mode 100644 index 0000000..935a0e2 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2023-05-02-21-05-30.gh-issue-104104.9tjplT.rst @@ -0,0 +1,2 @@ +Improve performance of :meth:`pathlib.Path.glob` by using +:data:`re.IGNORECASE` to implement case-insensitive matching. |