From nobody Wed Jun 02 17:14:15 2021 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id AF854DFD273 for ; Wed, 2 Jun 2021 17:14:15 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4FwFxg4MvQz3wDt for ; Wed, 2 Jun 2021 17:14:15 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 7FBC21A9FB for ; Wed, 2 Jun 2021 17:14:15 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 152HEFgP005684 for ; Wed, 2 Jun 2021 17:14:15 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 152HEFjF005683 for bugs@FreeBSD.org; Wed, 2 Jun 2021 17:14:15 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 223532] GNU egrep -i is terrible slow if utf-8 locale is enabled Date: Wed, 02 Jun 2021 17:14:15 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: freebsd@oldach.net X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D223532 Helge Oldach changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |freebsd@oldach.net --- Comment #3 from Helge Oldach --- (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.=