SIGN IN SIGN UP
python / cpython UNCLAIMED

The Python programming language

0 0 2 Python

GH-125413: pathlib ABCs: use `scandir()` to speed up `glob()` (#126261)

Use the new `PathBase.scandir()` method in `PathBase.glob()`, which greatly
reduces the number of `PathBase.stat()` calls needed when globbing.

There are no user-facing changes, because the pathlib ABCs are still
private and `Path.glob()` doesn't use the implementation in its superclass.
B
Barney Gale committed
68a51e0178e86be8b697683fd108aa795f235507
Parent: 464a7a9
Committed by GitHub <noreply@github.com> on 11/1/2024, 5:48:58 PM