git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC] Faster git grep.
@ 2013-07-25 18:29 Ondřej Bílka
  2013-07-25 20:08 ` Jeff King
  2013-07-25 20:41 ` Junio C Hamano
  0 siblings, 2 replies; 6+ messages in thread
From: Ondřej Bílka @ 2013-07-25 18:29 UTC (permalink / raw)
  To: git

Hi, 

When I do git grep then with big codebase (gcc) it executes slowly.
I am thinking to add option to speed up search time.

One solution would be to use same trick as was done in google code. 
Build and keep database of trigraphs and which files contain how many of
them. When querry is made then check
only these files that have appropriate combination of trigraphs.

Updating database would be relatively inexpensive compared to disk
access we need to do anyway.

A space usage might be problem so which is why I decided go option
route.

Comments, pointers?

Ondra

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2013-07-26  5:46 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-25 18:29 [RFC] Faster git grep Ondřej Bílka
2013-07-25 20:08 ` Jeff King
2013-07-25 20:41 ` Junio C Hamano
2013-07-25 21:31   ` Ondřej Bílka
2013-07-26  1:28     ` Junio C Hamano
2013-07-26  5:45       ` Ondřej Bílka

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).