Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 10 May 2021 09:32:26 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 254763] grep very slow with 13.0-RC4
Message-ID:  <bug-254763-227-V1lnYHUQVc@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-254763-227@https.bugs.freebsd.org/bugzilla/>
References:  <bug-254763-227@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D254763

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


On FreeBSD 13-STABLE, grep 2.6.0 search of /usr/ports/INDEX-13 with -i opti=
on
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 t=
he
second case of grep search above, but with case insensitive search ...=20

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

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-254763-227-V1lnYHUQVc>