SIGN IN SIGN UP

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.
B
Barney Gale committed
37651cfbce514a8daed75a8c63d6889081a63a23
Parent: 68a51e0
Committed by GitHub <noreply@github.com> on 11/1/2024, 6:52:00 PM