Continuing to play with building the fastest possible code counter. Actually getting performance CLOSE to what ripgrep gets which is impressive since I am processing every byte. ~5 seconds to process the Linux kernel.
-
-
Also, note that a good chunk of that is probably going to be benchmarking output, which probably defeats some of the purpose of the comparison. If you do `rg '^.+$' -c`, which will count every match instead of printing every match, then you might get a bit closer.
-
To be honest I was using ripgrep to A warm up the disk cache and B just give a reasonable idea of how fast its possible to move through the code. Noticed your comments on https://www.reddit.com/r/rust/comments/82k9iy/loc_count_lines_of_code_quickly/ … which is what I am now benching against :)
- 10 more replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.