Skip to content

Qgrep Internals

zeux.io
4 pointsequinumerous1 comment
On HN

Comments

qgrep apparently beats ripgrep, and by a huge margin (20x)

How is this possible? qgrep does not search from scratch, it creates "index" and searches it instead of on-disk files. The index is maintained manually, and the time to create index is not reflected in the benchmarks above. It's still pretty cool though.

(Also, it does not handle unicode and only handles ASCII. Also, author uses Windows and so they chose "*" as default "search all projects" command :) )

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.