Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 13 Aug 2010 15:23:35 +0200
From:      Gabor Kovesdan <gabor@FreeBSD.org>
To:        Anonymous <swell.k@gmail.com>
Cc:        freebsd-current@FreeBSD.org, Doug Barton <dougb@FreeBSD.org>
Subject:   Re: Official request: Please make GNU grep the default
Message-ID:  <4C654757.2040804@FreeBSD.org>
In-Reply-To: <86mxsq693n.fsf@gmail.com>
References:  <4C6505A4.9060203@FreeBSD.org> <86mxsq693n.fsf@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Em 2010.08.13. 13:33, Anonymous escreveu:
> Doug Barton<dougb@FreeBSD.org>  writes:
>
> [...]
>    
>> My reason is simple, performance. While doing some portmaster work
>> recently I was regression testing some changes I made to the --index*
>> options and noticed that things were dramatically slower than the last
>> time I tested those features. Thinking that I had made a programming
>> mistake I dug into my code, and while the regexps that I was using could
>> be tuned for slightly better performance the problem was not in my code.
>> I then installed textproc/gnugrep to compare, and the differences were
>> very dramatic using a highly pessimized test case (finding a match on
>> the last line of INDEX). The script I used to test is at
>> http://people.freebsd.org/~dougb/grep-time-trial.sh.txt and a typical
>> result was:
>>
>> GNU grep
>> Elapsed time: 2 seconds
>>
>> BSD grep
>> Elapsed time: 47 seconds
>>      
> Why not allow people to use grep(1) from ports in portmaster, e.g. by
> not overriding user-specified PATH?
>    
It would be a working solution but having seen the performance issue, it 
may also cause troubles elsewhere.

Gabor



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4C654757.2040804>