Re:Show HN: My Bytecode Optimizer Beats Copilot by 2X
by rented_mule on Sunday August 03, 2025 @02:39PM
(#44778661)
For simple string search (i.e., not regular expressions) ripgrep is quite fast. I just generated a simple 20 GB file with 10 random words per line (from /usr/share/dict/words). `rg --count-matches funny` takes about 6 seconds on my M2 Pro. Compressing it using `zstd -0` and then searching with `zstdcat lines_with_words.txt.zstd | rg --count-matches funny` takes about 25 seconds. Both timings start with the file not cached in memory.
[ Parent
| on HN ]