Skip to content

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

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

Closed
wants to merge 2 commits into from

Conversation

barneygale
Copy link
Contributor

@barneygale barneygale commented Apr 13, 2024

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 barneygale added performance Performance or resource usage topic-pathlib labels Apr 13, 2024
@barneygale 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
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