Skip to content
Tagged articles

trigram index

2 articles · Page 1 of 1
BirdNest Tech Talk
BirdNest Tech Talk
Sep 13, 2026 · Fundamentals

grep Showdown: rg vs tgrep vs rawgrep vs zg

This article compares four code search tools—ripgrep, tgrep, rawgrep, and zg—analyzing their distinct technical approaches: full-scan SIMD regex, trigram indexing, raw disk access, and semantic vector search, with benchmarks and guidance for choosing based on repository size, frequency, and AI agent integration.

AI agentsSemantic Searchcode search
0 likes · 18 min read
grep Showdown: rg vs tgrep vs rawgrep vs zg
Programmer DD
Programmer DD
Jun 18, 2026 · Artificial Intelligence

How Cursor Instantly Understands Massive Codebases

The article dissects Cursor's code‑base indexing pipeline, explaining how semantic vector search, trigram‑based regex filtering, AST‑driven chunking, custom embeddings trained on agent trajectories, Merkle‑tree change detection, and Turbopuffer's namespace‑per‑repo vector store combine to deliver sub‑second, accurate code retrieval even in monorepos with tens of thousands of files.

Code IndexingCursorMerkle tree
0 likes · 21 min read
How Cursor Instantly Understands Massive Codebases