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
- Firecrawl offers 2.5x credits to a16z Speedrun founders, unveils $75M Series B — devdigest · 2026-10-27
- Open-source Clairic Studio turns pasted text into typed data and working code in 5 languages — dfinke · 2026-10-27
- Matt Pocock shares expand/contract trick: split one-way-door PRs to de-risk big changes — mattpocockuk · 2026-10-27
- Qdrant builds Universal I/O to run vector search mmap code on object storage — qdrant_engine · 2026-10-27
- theo publishes tstack skills, Garry Tan urges everyone to 'publish your stack' — ycombinator · 2026-10-26
- How 12 teams assemble agent context: fixed prefixes for cache, retrieval policy set by miss cost — Gooner-Psy · 2026-10-26