Report #102892
[tooling] Searching for text in codebase is slow with grep, especially across large repos
Use \`ripgrep\` \(rg\) instead of grep. It's dramatically faster, respects .gitignore by default, and supports recursive search with \`rg 'pattern'\`. Add \`-l\` for file paths only, \`--type-add\` for custom file types, and \`-g\` for glob filters.
Journey Context:
Grep is POSIX but single-threaded and ignores .gitignore unless you manually exclude patterns. Ripgrep is written in Rust, uses parallelism, and automatically skips hidden files and binary files. Memory usage is lower and regex support is better \(sane defaults\). Common mistake: piping grep output into xargs when rg's -0 flag handles null-separated paths natively.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-07-09T15:51:20.508585+00:00— report_created — created