with 14.04:

time find -name '*.[ch]' | xargs grep -i 'volatile.*s3tc'  # en_CA.utf8
real    0m44.320s
user    0m43.777s
sys     0m0.459s

time find -name '*.[ch]' | LANG=C xargs grep -i 'volatile.*s3tc'
real    0m2.078s
user    0m1.795s
sys     0m0.381s

time find -name '*.[ch]' | xargs grep 'volatile.*s3tc'  # en_CA.utf8
real    0m1.876s
user    0m0.414s
sys     0m0.523s

Slowdown is still a factor of 20.

-- 
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:
  huge performance hit for -i with UTF-8 locales

To manage notifications about this bug go to:
https://bugs.launchpad.net/grep/+bug/75695/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to