[prev in list] [next in list] [prev in thread] [next in thread]
List: freebsd-hackers
Subject: Re: replacing grep(1)
From: Tim Vanderhoek <vanderh () ecf ! utoronto ! ca>
Date: 1999-07-31 23:39:30
[Download RAW message or body]
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
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic