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
Raw File
Tip revision: 2b9595601e6e81b0c81376d7942497af22e222dd authored by Ian Butterworth on 01 March 2024, 23:04:35 UTC
use `_readdirx` for `walkdir` (#53545)
Tip revision: 2b95956
.git-blame-ignore-revs
# .git-blame-ignore-revs
# whitespace: end text files with single newlines
3903fa54a638d4546ef50e56f91f0705a8ab11ef
# whitespace: use only UNIX line endings (\n)
e66bfa5dd32f93e76068c00ad882c1fc839c5af8
# whitespace: replace non-breaking space => space
100a741e7ab38c91d48cc929bb001afc8e09261f
# whitespace: replace tabs => space
b03e8ab9c7bd3e001add519571858fa04d6a249b
back to top