[Bug 254763] grep very slow with 13.0-RC4

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Mon May 10 09:32:26 UTC 2021


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

--- Comment #1 from parv <parv.0zero9+freebsd at gmail.com> ---
Another case of too slow a search is with -i option. Should I file a separate
PR?


On FreeBSD 13-STABLE, grep 2.6.0 search of /usr/ports/INDEX-13 with -i option
is very slow compared to without ...

# \time egrep -i --color '^yubi.?oath' INDEX-13
...
47.53 real 44.65 user 0.41 sys

# \time egrep --color '^yubi.?oath' INDEX-13
...
0.14 real 0.01 user 0.12 sys


... option --color does not affect the time as there was only 1 result.

Perl 5.32.1 (from Ports) does not color but the time output is similar to the
second case of grep search above, but with case insensitive search ... 

# \time perl -n -E 'm{^yubi.?oath}i and say' INDEX-13

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list