From owner-freebsd-current@FreeBSD.ORG Fri Aug 13 11:33:12 2010 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7D397106564A; Fri, 13 Aug 2010 11:33:12 +0000 (UTC) (envelope-from swell.k@gmail.com) Received: from mail-qy0-f182.google.com (mail-qy0-f182.google.com [209.85.216.182]) by mx1.freebsd.org (Postfix) with ESMTP id 017988FC23; Fri, 13 Aug 2010 11:33:11 +0000 (UTC) Received: by qyk32 with SMTP id 32so3226983qyk.13 for ; Fri, 13 Aug 2010 04:33:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:references :date:in-reply-to:message-id:user-agent:mime-version:content-type; bh=N68NU0dfOCqbUBs77E564AvJ+1EHkiPT/VpJ1et60ow=; b=VDfoRvn2yACDkzHJEydYQl7po87hGH/UPOzAzK0dYYtIKvMyCfO+Tlk+Yt7+Q85wJP gs14OJqRHZaP+el4nXRQk6CNxQ3D7TQutIXhAgumqFmWVW+YsEPeJzPs16w+3D7UALyD aM2XR5hhWMh/o5WwLgMFTPSR1xdLQPKgGKRbk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; b=cEK8uf48IQEVl/RPWiJ4lEFiCk0pYsheyFPk7kfWsxya86C/u1mLJunQnbt3nE6whJ hf+kpgbvTDDp0mfWgn8/N9bd9QVMdk7ygkOjTc19Z5lbAr9SNl9qGA/d7RuBZFwZ0+Ud weV6H28uw9qigGq7B+JzbWBu6JwU5gelXAlrk= Received: by 10.224.1.42 with SMTP id 42mr924773qad.91.1281699191163; Fri, 13 Aug 2010 04:33:11 -0700 (PDT) Received: from localhost ([78.47.29.82]) by mx.google.com with ESMTPS id e6sm3291479qcr.17.2010.08.13.04.33.09 (version=SSLv3 cipher=RC4-MD5); Fri, 13 Aug 2010 04:33:10 -0700 (PDT) From: Anonymous To: Doug Barton References: <4C6505A4.9060203@FreeBSD.org> Date: Fri, 13 Aug 2010 15:33:00 +0400 In-Reply-To: <4C6505A4.9060203@FreeBSD.org> (Doug Barton's message of "Fri, 13 Aug 2010 01:43:16 -0700") Message-ID: <86mxsq693n.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: freebsd-current@FreeBSD.org, Gabor Kovesdan Subject: Re: Official request: Please make GNU grep the default X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Aug 2010 11:33:12 -0000 Doug Barton 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?