Closed kmxz closed 7 years ago
The original implementation apply filters after recursively traversing all files and directories.
In some cases, huge directories are entirely filtered out by a user-supplied filter. Such directories do not need to be traversed at all.
Therefore, applying filters before traversing can save a lot of time and memory.
Seems it cannot work with globs. I'll close this.
The original implementation apply filters after recursively traversing all files and directories.
In some cases, huge directories are entirely filtered out by a user-supplied filter. Such directories do not need to be traversed at all.
Therefore, applying filters before traversing can save a lot of time and memory.