From owner-freebsd-hackers Tue Jul 27 13:48:57 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from baerenklau.de.freebsd.org (baerenklau.de.freebsd.org [195.185.195.14]) by hub.freebsd.org (Postfix) with ESMTP id B04A01523E for ; Tue, 27 Jul 1999 13:48:55 -0700 (PDT) (envelope-from w@panke.de.freebsd.org) Received: (from uucp@localhost) by baerenklau.de.freebsd.org (8.8.8/8.8.8) with UUCP id WAA10573; Tue, 27 Jul 1999 22:48:46 +0200 (CEST) (envelope-from w@panke.de.freebsd.org) Received: (from w@localhost) by paula.panke.de.freebsd.org (8.9.3/8.8.8) id WAA04703; Tue, 27 Jul 1999 22:42:03 +0200 (CEST) (envelope-from w) Message-ID: <19990727224202.25160@panke.de.freebsd.org> Date: Tue, 27 Jul 1999 22:42:02 +0200 From: Wolfram Schneider To: Dag-Erling Smorgrav , hackers@FreeBSD.org Subject: Re: replacing grep(1) References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.89i In-Reply-To: ; from Dag-Erling Smorgrav on Tue, Jul 27, 1999 at 01:37:35PM +0200 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On 1999-07-27 13:37:35 +0200, Dag-Erling Smorgrav wrote: > Jamie Howard (howardjp@wam.umd.edu), with a little help from yours > truly, has written a BSD-licensed version of grep(1) which has all the > functionality of our current (GPLed) implementation, plus a little > more, in one seventh the source code and one fourth the binary code. > What's more, the code is actually possible for mere mortals to read > and understand. > > The source code is available for download from freefall: > > > > I move that we replace GNU grep in our source tree with this > implementation, once it's been reviewed by all concerned parties. It is 25 times slower than GNU grep ;-((((((( $ time /usr/bin/grep foobar /var/tmp/mailbox >/dev/null 0.90 real 0.78 user 0.12 sys $ time /usr/local/bin/grep foobar /var/tmp/mailbox >/dev/null 24.31 real 22.36 user 1.69 sys (/var/tmp/mailbox is 81MB large). I often use grep for large data (in main memory). I don't care about the GNU license. I care about poor performance. -- Wolfram Schneider http://wolfram.schneider.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message