News for hackers. Stuff that matters.
Re:Hound: A Fast Code Search Tool by quanticle on Tuesday January 27, 2015 @08:47PM (#8957528)
How is hound better than ag [1]?

[1] https://github.com/ggreer/the_silver_searcher

Re:Hound: A Fast Code Search Tool by kellegous on Tuesday January 27, 2015 @09:00PM (#8957565)
The biggest difference is that Hound uses an inverted index to support regular expression searches. This is a technique borrowed from the original Google Code Search. The details are discussed on Russ Cox's site (http://swtch.com/~rsc/regexp/regexp4.html). With this technique, you can generally avoid even opening the vast majority of the files you are "grepping" (the number obviously depends on the pattern). To give you a sense, I just searched for a particular method name in several repositories totally several 100k of files and the search only had to open and search 9 files.
Re:Hound: A Fast Code Search Tool by quanticle on Wednesday January 28, 2015 @12:10AM (#8958239)
Thanks for the explanation. I guess I missed the part that said that Hound is indexed search rather than straight file search.