https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=223532

--- Comment #1 from Kyle Evans <kev...@freebsd.org> ---
Is this gnugrep or bsdgrep? (`egrep -V`) I'm getting something along these
lines with your reproduction steps:


root@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@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@www2:/usr/bin # env LANG=C time egrep -c foobar /tmp/tcsh400
0
        1.08 real         0.72 user         0.06 sys
root@www2:/usr/bin # env LANG=C time egrep -ic foobar /tmp/tcsh400
0
        1.11 real         0.74 user         0.07 sys



With:

root@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.
_______________________________________________
freebsd-bugs@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"

Reply via email to