"rg a | wc -l" on stable data, changing output #2506
Unanswered
shoffmeister
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Dunno. It's impossible to say without providing a way for me to test it. If you can't do that, then it seems like you could do an investigation to figure out the exact differences. Some combination of the following is just what I would do for example:
Your directory looks big. Maybe something is changing that you don't expect? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am confused by the results of these two runs of ripgrep:
I'd expect the total line count matching - regardless of the order of input files (cf #152). I would assume that the fragment that ripgrep emits per file should always be the same. Given that nothing in
git-research
changed, omitting--sort-files
would only result in the exact same output fragments be emitted in an undefined (random) order?FWIW,
--sort-files
seems to always produce matching line numbers (at the cost of 6 seconds of runtime, single-threaded vs 3 seconds for parallel execution).What am I missing?
Beta Was this translation helpful? Give feedback.
All reactions