git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* git grep performance regression
@ 2013-01-14 22:38 Ross Lagerwall
  2013-01-15  2:46 ` Duy Nguyen
  2013-01-15  2:48 ` Junio C Hamano
  0 siblings, 2 replies; 5+ messages in thread
From: Ross Lagerwall @ 2013-01-14 22:38 UTC (permalink / raw)
  To: git; +Cc: Jean-Noël AVILA

Hi,

I have noticed a performance regression in git grep between v1.8.1 and
v1.8.1.1:

On the kernel tree:
For git 1.8.1:
$ time git grep foodsgsg

real   0m0.158s
user   0m0.290s
sys    0m0.207s

For git 1.8.1.1:
$ time /tmp/g/bin/git grep foodsgsg

real   0m0.501s
user   0m0.707s
sys    0m0.493s


A bisect seems to indicate that it was introduced by 94bc67:
commit 94bc671a1f2e8610de475c2494d2763355a99f65
Author: Jean-Noël AVILA <avila.jn@gmail.com>
Date:   Sat Dec 8 21:04:39 2012 +0100

    Add directory pattern matching to attributes
    
    The manpage of gitattributes says: "The rules how the pattern
    matches paths are the same as in .gitignore files" and the gitignore
    pattern matching has a pattern ending with / for directory matching.
    
    This rule is specifically relevant for the 'export-ignore' rule used
    for git archive.
    
    Signed-off-by: Jean-Noel Avila <jn.avila@free.fr>
    Signed-off-by: Junio C Hamano <gitster@pobox.com>

Regards
-- 
Ross Lagerwall

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

end of thread, other threads:[~2013-01-15  7:36 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-14 22:38 git grep performance regression Ross Lagerwall
2013-01-15  2:46 ` Duy Nguyen
2013-01-15  4:38   ` Duy Nguyen
2013-01-15  7:36     ` Ross Lagerwall
2013-01-15  2:48 ` Junio C Hamano

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).