[Bug 223532] egrep -i is terrible slow if utf-8 locale is enabled
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Thu Nov 9 02:46:21 UTC 2017
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=223532
--- Comment #1 from Kyle Evans <kevans at freebsd.org> ---
Is this gnugrep or bsdgrep? (`egrep -V`) I'm getting something along these
lines with your reproduction steps:
root at www2:/usr/bin # env LANG=en_CA.UTF-8 time egrep -c foobar /tmp/tcsh400
0
1.13 real 0.73 user 0.08 sys
root at www2:/usr/bin # env LANG=en_CA.UTF-8 time egrep -ic foobar /tmp/tcsh400
0
3.73 real 3.26 user 0.08 sys
root at www2:/usr/bin # env LANG=C time egrep -c foobar /tmp/tcsh400
0
1.08 real 0.72 user 0.06 sys
root at www2:/usr/bin # env LANG=C time egrep -ic foobar /tmp/tcsh400
0
1.11 real 0.74 user 0.07 sys
With:
root at www2:/usr/bin # grep -V
grep (BSD grep, GNU compatible) 2.6.0-FreeBSD
So egrep -i is still slower with bsdgrep, but it's only 3x slower than the
equivalent case-sensitive search here.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list