FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

GH-117841: Speed up `pathlib.Path.glob()` on Windows by using `lexists()` by barneygale · Pull Request #117858 · python/cpython · GitHub

/ cpython Public

GH-117841: Speed up pathlib.Path.glob() on Windows by using lexists() - #117858

Closed
barneygale wants to merge 2 commits into
python:mainfrom
barneygale:gh-117842-lexists
Closed

GH-117841: Speed up pathlib.Path.glob() on Windows by using lexists()#117858
barneygale wants to merge 2 commits into
python:mainfrom
barneygale:gh-117842-lexists

Conversation

barneygale commented Apr 13, 2024
edited by bedevere-app Bot
Loading

Copy link
Copy Markdown
Contributor

Use os.path.lexists() rather than os.lstat() to test whether paths exist. This is equivalent on POSIX, but faster on Windows.

Depends on #117842

…lexists()`

Use `os.path.lexists()` rather than `os.lstat()` to test whether paths
exist. This is equivalent on POSIX, but faster on Windows.
barneygale added performance Performance or resource usage topic-pathlib labels Apr 13, 2024
barneygale changed the title GH-117842: Speed up pathlib.Path.glob() on Windows by using lexists() GH-117841: Speed up pathlib.Path.glob() on Windows by using lexists() Apr 13, 2024
Comment thread Lib/glob.py
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

performance Performance or resource usage topic-pathlib

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants


Back | FazBrowse Home | New Git URL