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

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

Re: grep -i excessively slow


From: Bob Proulx
Subject: Re: grep -i excessively slow
Date: Thu, 22 Sep 2005 21:41:11 -0600
User-agent: Mutt/1.5.9i

Paul Rubin wrote:
> Now I do the same thing with grep -i, and it takes 200 times longer:
> 
>     address@hidden time grep -i hello myfile >/dev/null
> 
>     real    0m23.437s
>     user    0m22.133s
>     sys     0m0.162s
> 
> This makes me think that grep is doing something really dumb when -i
> is used.

You are almost certainly using a non-standard locale setting.  Try
your case again using a standard locale and I am sure things will be
faster.  The performance difference with non-standard locales is well
known.

  LC_ALL=C time grep -i hello myfile >/dev/null

Bob




reply via email to

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