From: "Ondřej Bílka" <neleai@seznam.cz>
To: git@vger.kernel.org
Subject: [RFC] Faster git grep.
Date: Thu, 25 Jul 2013 20:29:05 +0200 [thread overview]
Message-ID: <20130725182905.GA7664@domone.kolej.mff.cuni.cz> (raw)
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
next reply other threads:[~2013-07-25 18:29 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-25 18:29 Ondřej Bílka [this message]
2013-07-25 20:08 ` [RFC] Faster git grep 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20130725182905.GA7664@domone.kolej.mff.cuni.cz \
--to=neleai@seznam.cz \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).