(no title)
oever | 4 months ago
The repository contains CI files in .woodpecker. These are scripts that I'd normally expect to be searching in. Until a week ago I used -uu to do so, but that made rg take over 4 seconds for a search. Using -. brings the search time down to 24ms.
git ls-files -z | time xargs -0 rg -w e23
40ms
rg -w. e23
24ms
rgg -w e23
16ms
rg -wuu e23
2754ms
To reproduce this with the given repository, fill it with 20GB of binary files.The -. flag makes this point moot though.
burntsushi|4 months ago
Yes, now it makes sense. And yes, `-./--hidden` makes it moot. Thanks for following up!