fresh icon indicating copy to clipboard operation
fresh copied to clipboard

optimize by swapping Walk for WalkDir

Open srbiotik opened this issue 2 years ago • 0 comments

Go 1.16 added filepath.WalkDir alongside filepath.Walk for performance reasons (see https://github.com/golang/go/issues/42027). The WalkDir method skips files and is Walk is more efficient than Walk by avoiding to call os.Lstat on every visited file or directory. @gravityblast Could you review this?

srbiotik avatar Feb 02 '23 17:02 srbiotik