diff options
author | Barney Gale <barney.gale@gmail.com> | 2024-11-01 18:52:00 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-01 18:52:00 (GMT) |
commit | 37651cfbce514a8daed75a8c63d6889081a63a23 (patch) | |
tree | 285d6f2640767f8182ef86f8b642268699f91744 /Python/stdlib_module_names.h | |
parent | 68a51e0178e86be8b697683fd108aa795f235507 (diff) | |
download | cpython-37651cfbce514a8daed75a8c63d6889081a63a23.zip cpython-37651cfbce514a8daed75a8c63d6889081a63a23.tar.gz cpython-37651cfbce514a8daed75a8c63d6889081a63a23.tar.bz2 |
GH-125413: pathlib ABCs: use `scandir()` to speed up `walk()` (#126262)
Use the new `PathBase.scandir()` method in `PathBase.walk()`, which greatly
reduces the number of `PathBase.stat()` calls needed when walking.
There are no user-facing changes, because the pathlib ABCs are still
private and `Path.walk()` doesn't use the implementation in its superclass.
Diffstat (limited to 'Python/stdlib_module_names.h')
0 files changed, 0 insertions, 0 deletions