Microsoft open-sources tgrep, a trigram-indexed grep up to 52x faster than ripgrep
leslysandra · x · 2026-09-08
Microsoft open-sourced tgrep, a trigram-indexed grep with a client/server architecture for fast regex search in large codebases, already powering grep in GitHub Copilot CLI.
- Why: grep/ripgrep scan every file per query (O(total bytes)), painful in 100k+ file monorepos; tgrep pre-builds a trigram index so searches only touch files that could match.
- Usage: tgrep index . to build, tgrep serve . to run a watching server, then tgrep "fn main" . searches instantly.
- Perf: benchmarks show up to 52x speedup over ripgrep.
Related event: Microsoft Open-Sources tgrep, Up to 52x Faster Than ripgrep(2 posts)→
More from coding & agent
- C*: a proof-integrated C language unifying programming and verification — jedisct1 · 2026-09-09
- Claude Code desktop app adds custom output styles for formatting Claude's replies — lydiahallie · 2026-09-09
- ARC's Greg Kamradt: AGI gains must come from self-built tools, not one-shot ability — GregKamradt · 2026-09-09
- Best-crafted coding agent GUIs: Codex abroad, ZCode in China — vista8 · 2026-09-09
- dbreunig builds an audio wave brush for kool-brushez and shares the repo — dbreunig · 2026-09-09
- AWS: build agent CI/CD quality gates with AgentCore Evaluations and GitHub Actions — AWS ML Blog · 2026-09-09