[Bug 254763] grep very slow with 13.0-RC4

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Tue May 11 00:12:59 UTC 2021


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

Stefan Rink <stefanrink at yahoo.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |stefanrink at yahoo.com

--- Comment #8 from Stefan Rink <stefanrink at yahoo.com> ---
If you compile grep with gnuregex (like FreeBSD 12) it's okay.

With gnuregex; (edit grep.h to include gnuregex.h instead of gnuregex.h)
[root at SuperBSD /tmp/test]# cc -o grep *.c -lgnuregex -L/usr/local/lib
-I/usr/local/include
[root at SuperBSD /tmp/test]# time ./grep -i 'bla' /usr/ports/INDEX-13 | wc -l
    1040

real    0m0.388s
user    0m0.385s
sys     0m0.008s
[root at SuperBSD /tmp/test]# time grep -i 'bla' /usr/ports/INDEX-13 | wc -l
    1040

real    0m3.428s
user    0m3.430s
sys     0m0.008s

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


More information about the freebsd-bugs mailing list