diff options
author | Barney Gale <barney.gale@gmail.com> | 2024-04-12 22:02:39 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-12 22:02:39 (GMT) |
commit | 30f0643e36d2c9a5849c76ca0b27b748448d0567 (patch) | |
tree | 65cede6194946ae5d5f55815c42b454eeabde038 /Python/optimizer_analysis.c | |
parent | 0eb52f5f266d9e0a662f28a4d2dfef8c746cf96e (diff) | |
download | cpython-30f0643e36d2c9a5849c76ca0b27b748448d0567.zip cpython-30f0643e36d2c9a5849c76ca0b27b748448d0567.tar.gz cpython-30f0643e36d2c9a5849c76ca0b27b748448d0567.tar.bz2 |
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`.
Diffstat (limited to 'Python/optimizer_analysis.c')
0 files changed, 0 insertions, 0 deletions