with 14.04:
time find -name '*.[ch]' | xargs grep -i 'volatile.*s3tc' # en_CA.utf8
real0m44.320s
user0m43.777s
sys 0m0.459s
time find -name '*.[ch]' | LANG=C xargs grep -i 'volatile.*s3tc'
real0m2.078s
user0m1.795s
sys 0m0.381s
time find -name '*.[ch]' | xargs grep 'vola
The performance hit of -i hasn't changed with 12.04 LTS. Will have to
check with a newer grep, I guess. Seeing e.g. 25 secs to grep -i on the
.c/.h files in a Linux source tree, 0.5 secs to grep without -i. 1.3
secs for a LANG=C grep -i. No disk I/O, files are cached.
So a factor of about 20
The upstream allready mark their bug as fixed. Is this still a issue?
** Changed in: grep (Ubuntu)
Status: Confirmed => Incomplete
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/75695
Title:
Thanks for your report. This is know upstream and a patch has been
proposed.
** Changed in: grep (Ubuntu)
Status: New => Confirmed
** Bug watch added: GNU Savannah Bug Tracker #14472
http://savannah.gnu.org/bugs/?14472
** Also affects: grep via
http://savannah.gnu.org/bugs/?14472
Was going to log a new bug, but this one looks very similar. Heres the
details I found.
Peter try setting LANG to something matching under /usr/lib/locale and
run your test to see if we have the same bug. probably en_CA.utf8