Be more efficient about globbing
Before, we were walking the directory tree recursively unconditionally. Now we check if the pattern is recursive before doing that, and also only check the directory's full listing if a glob pattern is involved at all, so literal patterns are more efficient.
Showing
- Cabal/Distribution/Simple/Glob.hs 65 additions, 41 deletionsCabal/Distribution/Simple/Glob.hs
- Cabal/doc/developing-packages.rst 6 additions, 5 deletionsCabal/doc/developing-packages.rst
- Cabal/tests/UnitTests/Distribution/Simple/Glob.hs 2 additions, 14 deletionsCabal/tests/UnitTests/Distribution/Simple/Glob.hs
Please register or sign in to comment