Date: Sat, 5 Mar 2011 21:04:50 -1000 From: Clifton Royston <cliftonr@lava.net> To: Jeremy Chadwick <freebsd@jdc.parodius.com> Cc: freebsd-stable@freebsd.org Subject: Re: Strange performance issue with grep -r -i as non-root user Message-ID: <20110306070450.GA92752@lava.net> In-Reply-To: <20110306030720.GA99973@icarus.home.lan> References: <20110305234514.GA34594@icarus.home.lan> <20110306024604.GA7746@in-addr.com> <20110306030720.GA99973@icarus.home.lan>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Mar 05, 2011 at 07:07:20PM -0800, Jeremy Chadwick wrote:
...
> $ unset LANG
>   - Result: still 80x slower with -i
> $ unset LANG LC_COLLATE
>   - Result: still 80x slower with -i
> $ unset LANG LC_CTYPE
>   - Result: normal/fast.
> $ unset LC_CTYPE
>   - Result: still 80x slower with -i
> $ unset LC_CTYPE LC_COLLATE
>   - Result: still 80x slower with -i
> $ unset LC_COLLATE
>   - Result: still 80x slower with -i
> 
> So the LANG + LC_CTYPE combo when used together are what cause this.
  Doesn't the above say that having either one set does it?
  I would guess it's probably that either one requires the 8.x
grep -i to make a conversion function call for each char (or perhaps
line) of input to ensure the proper upper/lower case conversion rules
are followed.
  -- Clifton
-- 
    Clifton Royston  --  cliftonr@iandicomputing.com / cliftonr@lava.net
       President  - I and I Computing * http://www.iandicomputing.com/
 Custom programming, network design, systems and network consulting services
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20110306070450.GA92752>
