Date: Wed, 02 Jun 2021 17:14:15 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 223532] GNU egrep -i is terrible slow if utf-8 locale is enabled Message-ID: <bug-223532-227-Ka357wsNFu@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-223532-227@https.bugs.freebsd.org/bugzilla/> References: <bug-223532-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=3D223532 Helge Oldach <freebsd@oldach.net> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |freebsd@oldach.net --- Comment #3 from Helge Oldach <freebsd@oldach.net> --- (In reply to Wolfram Schneider from comment #2) Hmm. I have noticed that as well. I suspect it's a fallout of bug #253209, = as I noticed it was much more slowly after that fix. However, I'm seeing the vast majority of slowdown with other locales but ut= f-8 as well: root@nuc ~ # grep -V grep (BSD grep, GNU compatible) 2.6.0-FreeBSD root@nuc ~ # time fgrep zpipe /usr/ports/INDEX-13 0.28 real 0.15 user 0.06 sys root@nuc ~ # time fgrep -i zpipe /usr/ports/INDEX-13 13.87 real 13.86 user 0.00 sys root@nuc ~ # LANG=3Den_US.UTF-8 time fgrep -i zpipe /usr/ports/INDEX-13 17.67 real 17.65 user 0.01 sys root@nuc ~ # LANG=3DC.UTF-8 time fgrep -i zpipe /usr/ports/INDEX-13 17.63 real 17.59 user 0.02 sys root@nuc ~ # LANG=3Den_US.iso8859-1 time fgrep -i zpipe /usr/ports/INDEX-13 13.97 real 13.95 user 0.02 sys root@nuc ~ # LANG=3DC time fgrep -i zpipe /usr/ports/INDEX-13 14.00 real 13.97 user 0.03 sys root@nuc ~ # To summarize, "-i" adds two (!) orders of magnitude, and changing to a multibyte character set adds some more 33% further on top. --=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-223532-227-Ka357wsNFu>