cpython/Lib/pathlib
Barney Gale 30f0643e36
GH-117727: Speed up pathlib.Path.iterdir() by using os.scandir() (#117728)
Replace use of `os.listdir()` with `os.scandir()`. Forgo setting `_drv`,
`_root` and `_tail_cached`, as these usually aren't needed. Use
`os.DirEntry.path` to set `_str`.
2024-04-12 22:02:39 +00:00
..
__init__.py GH-117727: Speed up pathlib.Path.iterdir() by using os.scandir() (#117728) 2024-04-12 22:02:39 +00:00
_abc.py GH-115060: Speed up pathlib.Path.glob() by not scanning literal parts (#117732) 2024-04-12 22:19:21 +01:00