From owner-freebsd-hackers@FreeBSD.ORG Sun Jun 22 09:41:08 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2EFA237B401 for ; Sun, 22 Jun 2003 09:41:08 -0700 (PDT) Received: from mail.farley.org (adsl-67-64-95-201.dsl.austtx.swbell.net [67.64.95.201]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2064E43FBF for ; Sun, 22 Jun 2003 09:41:06 -0700 (PDT) (envelope-from sean-freebsd@farley.org) Received: from thor.farley.org (gwvetun24tou3bn2@thor.farley.org [IPv6:2002:4340:5fc9::5]) by mail.farley.org (8.12.9/8.12.9) with ESMTP id h5MGf6Mp014893 for ; Sun, 22 Jun 2003 11:41:06 -0500 (CDT) (envelope-from sean-freebsd@farley.org) Received: from thor.farley.org (localhost [127.0.0.1]) by thor.farley.org (8.12.9/8.12.9) with ESMTP id h5MGf5PC034699 for ; Sun, 22 Jun 2003 11:41:05 -0500 (CDT) (envelope-from sean-freebsd@farley.org) Received: from localhost (sean@localhost)h5MGf5bd034696 for ; Sun, 22 Jun 2003 11:41:05 -0500 (CDT) (envelope-from sean-freebsd@farley.org) X-Authentication-Warning: thor.farley.org: sean owned process doing -bs Date: Sun, 22 Jun 2003 11:41:05 -0500 (CDT) From: Sean Farley X-X-Sender: sean@thor.farley.org To: freebsd-hackers@FreeBSD.ORG In-Reply-To: <20030622005852.GB59673@HAL9000.homeunix.com> Message-ID: <20030622092848.R28123@thor.farley.org> References: <20030621103502.K18572@thor.farley.org> <20030622005852.GB59673@HAL9000.homeunix.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: Re: Replacing GNU grep revisited X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 22 Jun 2003 16:41:08 -0000 On Sat, 21 Jun 2003, David Schultz wrote: > dds@ has expressed some interest in compiling the FSMs for regexps > into native code, which would make it blazingly fast. See cvs-all@. > As a practical matter, there are only a couple of zealots who care > what kind of license grep is under, so replacing GNU grep with > something that's ``almost as good as GNU grep'' is a regression IMO. > If we were talking about a kernel module or library, of course, that > would be a different matter. Let me clarify. As far as I have been able to find out, the big hold-out on not considering FreeGrep was that it was too slow. I got the time to be comparable. Reasons to consider for switching: 1. GNU's grep -r option "is broken" according to the following post. The only thing I have noticed is that FreeGrep has more options for controlling how symbolic links are traversed. http://groups.google.com/groups?hl=en&lr=lang_en&ie=UTF-8&selm=xzp7kchblor.fsf_flood.ping.uio.no%40ns.sol.net 2. GNU's grep is using libgnuregex. The speed-up by dds@ would not be felt? 3. FreeGrep gives one less thing for zealots to complain about. :) Sean ----------------------- sean-freebsd@farley.org