From: Jeff King <peff@peff.net>
To: Johannes Schindelin <Johannes.Schindelin@gmx.de>
Cc: "Shawn O. Pearce" <spearce@spearce.org>,
Git Mailing List <git@vger.kernel.org>
Subject: Re: A tracking tree for the active work space
Date: Sun, 11 Mar 2007 17:40:11 -0400 [thread overview]
Message-ID: <20070311214011.GA21155@coredump.intra.peff.net> (raw)
In-Reply-To: <Pine.LNX.4.63.0703112209160.22628@wbgn013.biozentrum.uni-wuerzburg.de>
On Sun, Mar 11, 2007 at 10:31:58PM +0100, Johannes Schindelin wrote:
> - how do you want to cope with regular expressions? (The previous problem
> only addresses simple, constant search terms, i.e. no true regular
> expressions.)
I expect you could extract any obvious tokens from the regex, and then
run the regex only over the files which contain those tokens. Obviously
your worst case performance will be the same as the original grep (plus
the overhead of looking up the tokens), but in practice, I expect you
could end up searching through only a fraction of the files (depending
on your regexp and how diverse the data set is).
Of course, I have never had a complaint about the speed of git-grep, so
maybe it's not all that compelling. :)
-Peff
next prev parent reply other threads:[~2007-03-11 21:40 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-03-11 14:06 A tracking tree for the active work space Jon Smirl
2007-03-11 20:15 ` Junio C Hamano
2007-03-11 20:35 ` Jon Smirl
2007-03-11 21:31 ` Johannes Schindelin
2007-03-11 21:40 ` Jeff King [this message]
2007-03-12 1:39 ` Jon Smirl
2007-03-11 23:18 ` Johannes Schindelin
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=20070311214011.GA21155@coredump.intra.peff.net \
--to=peff@peff.net \
--cc=Johannes.Schindelin@gmx.de \
--cc=git@vger.kernel.org \
--cc=spearce@spearce.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).