https://github.com/JuliaLang/julia
Revision 2b9595601e6e81b0c81376d7942497af22e222dd authored by Ian Butterworth on 01 March 2024, 23:04:35 UTC, committed by GitHub on 01 March 2024, 23:04:35 UTC
On a M2 Mac there is some benefit, but assumed to be much greater on
slower filesystems.
```
# master
julia> @btime collect(walkdir(expanduser("~/Downloads")));
  380.086 ms (310696 allocations: 25.29 MiB)

# This PR
julia> @btime collect(walkdir(expanduser("~/Downloads")));
  289.747 ms (103300 allocations: 7.50 MiB)
```

The implementations appear to produce the same result
```
julia> collect(walkdir(expanduser("~/Downloads"))) == collect(walkdirx(expanduser("~/Downloads")))
true
```
1 parent 188e386
History
Tip revision: 2b9595601e6e81b0c81376d7942497af22e222dd authored by Ian Butterworth on 01 March 2024, 23:04:35 UTC
use `_readdirx` for `walkdir` (#53545)
Tip revision: 2b95956

back to top