SIGN IN SIGN UP

GH-119169: Slightly speed up `os.walk(topdown=True)` (GH-121431)

GH-119186: Slightly speed up `os.walk(topdown=True)`

When `os.walk()` traverses into subdirectories in top-down mode, call
`os.path.join()` once to add a trailing slash, and use string concatenation
thereafter to generate child paths.
B
Barney Gale committed
b19ad110278344d01a6f8d008c4cda3e07dc50e9
Parent: 984d928
Committed by GitHub <noreply@github.com> on 9/3/2025, 11:57:01 AM