From owner-freebsd-current@FreeBSD.ORG Fri Aug 20 05:48:56 2010 Return-Path: Delivered-To: current@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B6F521065679; Fri, 20 Aug 2010 05:48:56 +0000 (UTC) (envelope-from lev@FreeBSD.org) Received: from ftp.translate.ru (ftp.translate.ru [80.249.188.42]) by mx1.freebsd.org (Postfix) with ESMTP id 74A2E8FC13; Fri, 20 Aug 2010 05:48:56 +0000 (UTC) Received: from desktop.home.serebryakov.spb.ru (89.112.15.178.pppoe.eltel.net [89.112.15.178]) (Authenticated sender: lev@serebryakov.spb.ru) by ftp.translate.ru (Postfix) with ESMTPA id 1064813DF46; Fri, 20 Aug 2010 09:32:20 +0400 (MSD) Date: Fri, 20 Aug 2010 09:31:44 +0400 From: Lev Serebryakov Organization: FreeBSD X-Priority: 3 (Normal) Message-ID: <1163150765.20100820093144@serebryakov.spb.ru> To: Gabor Kovesdan In-Reply-To: <4C66C010.3040308@FreeBSD.org> References: <4C6505A4.9060203@FreeBSD.org> <20100813085235.GA16268@freebsd.org> <4C66C010.3040308@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset=windows-1251 Content-Transfer-Encoding: quoted-printable Cc: current@FreeBSD.org Subject: Re: Official request: Please make GNU grep the default X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: lev@FreeBSD.org List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Aug 2010 05:48:56 -0000 Hello, Gabor. You wrote 14 =E0=E2=E3=F3=F1=F2=E0 2010 =E3., 20:10:56: > 2, GNU grep uses internal optimizations to get that performance. I think > it's a wrong approach because the regex library itself should be=20 > optimized instead to keep BSD grep clean and simple and to provide the > same efficiency for all utilities that are linked to the regex library. > Our libc-regex is definitely need to be replaced at some point in the=20 > future but that's a more complex item. See the following references: > http://wiki.freebsd.org/BSDgrep > http://wiki.freebsd.org/Regex You don't have these links on Wiki page, so I post them here. I hope, you've read these articles, but it is better to duplicate links, than miss them. http://swtch.com/~rsc/regexp/regexp1.html http://swtch.com/~rsc/regexp/ And it iw very strange to see TRE soooo slow, because it seems, it is based on "fast" linear approcach, when gnu-regexp is old, slow, one... --=20 // Black Lion AKA Lev Serebryakov