[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: grep --ignore-case efficiency
From: |
Johannes Meixner |
Subject: |
Re: grep --ignore-case efficiency |
Date: |
Wed, 30 Jan 2013 11:41:35 +0100 (CET) |
User-agent: |
Alpine 2.00 (LNX 1167 2008-08-23) |
Hello,
On Jan 29 22:17 Paulo Nogueira wrote (excerpt):
Although I am completely oblivious of the inner workings
of grep, it seems rather strange that the ignore-case
could take (say) tens of times longer to execute than
the do-not-ignore-case -- and I am referring to normal
ASCII files.
Have a look at
http://en.opensuse.org/SDB:Plain_Text_versus_Locale
in particular the section
"Processing UTF-8 is slower than ISO-8859 and ASCII"
and replace the "wc" tool therein with "grep".
In other words:
Is grep still slow for you if you run it in a locale
environment that uses single byte character encoding?
Kind Regards
Johannes Meixner
--
SUSE LINUX Products GmbH -- Maxfeldstrasse 5 -- 90409 Nuernberg -- Germany
HRB 16746 (AG Nuernberg) GF: Jeff Hawn, Jennifer Guild, Felix Imendoerffer