Microsoft open-sources tgrep, a trigram-indexed grep up to 52x faster than ripgrep

jedisct1 · x · 2026-09-07

Microsoft open-sourced tgrep, a trigram-indexed grep with a client/server architecture that runs regex searches in large codebases 7-50x faster than ripgrep and ugrep (benchmarks show up to 52x). Instead of scanning every byte per query, tgrep pre-builds a trigram index so searches only touch candidate files: run tgrep index ., start tgrep serve . (watches for changes), then queries return instantly. It's written in Rust, MIT-licensed, and already powers fast grep in GitHub Copilot CLI.

Original post →

More from coding & agent

coding & agent channel →