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

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

Re: grep is slow


From: Stepan Kasal
Subject: Re: grep is slow
Date: Mon, 7 Jul 2003 16:38:14 +0200
User-agent: Mutt/1.2.5.1i

Hello,

On Fri, Jul 04, 2003 at 09:41:23PM -0400, collinsd wrote:
> address@hidden work]# date
> Fri Jul  4 20:33:09 EDT 2003
> address@hidden work]# grep Bar outx | wc
> date
>  155449  155449  621796
> address@hidden work]# date
> Fri Jul  4 20:37:57 EDT 2003

the problem is caused by the inefficiency of the regex code which is
part of the new glibc library.  Another reason might be that you use
encoding UTF-8 (a variant of Unicode) because it might be the default
in your system (RedHat often defaults to UTF-8).

Please try to set LC_ALL=C and repeat the test.
You might also try to rebuild grep with ./configure --with-included-regex.

I'd be glad to hear about your results and/or to explain any questions
about this.

Yours,
        Stepan Kasal




reply via email to

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