]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
GH-113225: Speed up `pathlib._abc.PathBase.glob()` (#113556)
authorBarney Gale <barney.gale@gmail.com>
Thu, 28 Dec 2023 22:23:01 +0000 (22:23 +0000)
committerGitHub <noreply@github.com>
Thu, 28 Dec 2023 22:23:01 +0000 (22:23 +0000)
commitb664d9159964f0609d50dabd02f71af0227d8718
tree0610319a5087fec881ea54ddc8121ab90c0d664d
parentdb1c88223986efe3076eb3b229a8b6db59bae284
GH-113225: Speed up `pathlib._abc.PathBase.glob()` (#113556)

`PathBase._scandir()` is implemented using `iterdir()`, so we can use its
results directly, rather than passing them through `_make_child_relpath()`.
Lib/pathlib/__init__.py
Lib/pathlib/_abc.py