cpython/Lib/pathlib
Barney Gale 0eb52f5f26
GH-115060: Speed up pathlib.Path.glob() by not scanning literal parts (#117732)
Don't bother calling `os.scandir()` to scan for literal pattern segments,
like `foo` in `foo/*.py`. Instead, append the segment(s) as-is and call
through to the next selector with `exists=False`, which signals that the
path might not exist. Subsequent selectors will call `os.scandir()` or
`os.lstat()` to filter out missing paths as needed.
2024-04-12 22:19:21 +01:00
..
__init__.py GH-117586: Speed up pathlib.Path.walk() by working with strings (#117726) 2024-04-11 01:26:53 +01:00
_abc.py GH-115060: Speed up pathlib.Path.glob() by not scanning literal parts (#117732) 2024-04-12 22:19:21 +01:00