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: Thu, 15 Dec 2005 10:18:31 -0700
User-agent: Mutt/1.5.9i

address@hidden wrote:
> I had upgraded my operation system from RedHat 6.1 with kernel 2.2 to
> RedHat Enterprise Edition 4 with kernel 2.6  and I had a  big
> performance decrease in "grep" utilitary.

The old one will not support internationalization but the new one
does.  That is a big difference in functionality.

> 3 minutes 28 seconds
>  2 minutes 36 seconds
>  0 minutes 05 seconds

> I wold like to know if this strong diference is normal for these diferents
> versions ?

This is probably due to using a non-standard locale.  Check the
settings of all of the locale affecting variables with the 'locale'
command.

  locale

In your script you may change your current local to a standard one and
this should improve the performance.

  export LC_ALL=C

Personally I use the following configuration:

  export LANG=en_US.UTF-8
  export LC_COLLATE=C

But obviously that is a personal preference and others will prefer
different configurations.

Bob




reply via email to

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