bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: grep


From: Bob Proulx
Subject: Re: grep
Date: Sun, 30 Mar 2003 21:33:27 -0700
User-agent: Mutt/1.3.28i

Malcolm Johnston wrote:
> I am running RedHat 8.0 on an AMD Athlon XP 2100+ platform, and grep,
> while it works, is about 25 times slower than it was on my Pentium II
> 450.

Your new platform is RH-8.0 but what was your system running on the
PII-450?  RH-8.0 too?  Or something different, possibly much older
which did not support locales?

> For instance, the pattern '[^\na]a?\.(bc|d-g)+$' takes about 0.75+
> of a second compared to 0.040; the pattern ''[Oo]ne|[Tt]wo|...up to
> [Ee]ight' takes over three seconds.  Perl and awk and even I program I
> wrote with the help of a book are all a lot faster; even when the
> pattern is just literals grep is still just as slow.  Any thoughts?

What is your LANG variable set to?  Try unsetting it, or setting it to
either C or POSIX and seeing if that makes a difference.

Bob




reply via email to

[Prev in Thread] Current Thread [Next in Thread]