frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Trigrep – indexed regex search in Rust with CLI

https://github.com/PythonicNinja/trigrep
1•PythonicNinja•1h ago

Comments

PythonicNinja•1h ago
Indexed regex search for large codebases, powered by trigram / sparse n‑gram indexes. A grep-like CLI that builds a local on-disk index, so searches stay fast even on huge monorepos.

based on algorithm from cursor team: https://cursor.com/blog/fast-regex-search

saidnooneever•1h ago
it might be nice to add some kind of comparison to other similar tools like ripgrep etc to see what the differences are in usage, performance etc.

now it kind of sounds the same as other tools (for ppl like me who dont by heart know all these algos)

PythonicNinja•1h ago
Adding it right now.

Will compare grep vs rg vs trigrep against git source code.

PythonicNinja•1h ago
added comparison:

https://github.com/PythonicNinja/trigrep/commit/ca64fd81a6d8...