Date: Sat, 31 Jul 1999 19:39:30 -0400 From: Tim Vanderhoek <vanderh@ecf.utoronto.ca> To: Sheldon Hearn <sheldonh@uunet.co.za> Cc: Dag-Erling Smorgrav <des@flood.ping.uio.no>, John-Mark Gurney <gurney_j@resnet.uoregon.edu>, James Howard <howardjp@wam.umd.edu>, "Daniel C. Sobral" <dcs@newsguy.com>, freebsd-hackers@FreeBSD.ORG Subject: Re: replacing grep(1) Message-ID: <19990731193930.B2466@mad> In-Reply-To: <70182.933458176@axl.noc.iafrica.com>; from Sheldon Hearn on Sat, Jul 31, 1999 at 11:56:16PM %2B0200 References: <19990730220726.A69246@mad> <70182.933458176@axl.noc.iafrica.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Jul 31, 1999 at 11:56:16PM +0200, Sheldon Hearn wrote: > > > b$ time ./grep -E '(vt100)|(printer)' longfile > /dev/null > > b$ time grep '(vt100)|(printer)' longfile > /dev/null > > You think that's fair? Surely you can't expect Jamie's extended regex > support to outperform GNU's simple regex support? :-) GNU has no simple regex support. Actually, neither did Jamie's by the time I did that test, but I added the -E flag to make it obvious what was going on. :) I rather hope that the rumoured newer version of H. Spencer's regex lib is faster... Being as slow for that pattern as it is has got to be a bug of some sort... It's actually faster to scan the file twice, once for the first string and then for the second. -- This is my .signature which gets appended to the end of my messages. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990731193930.B2466>