Date: Mon, 24 Nov 2025 14:46:55 +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-wRGQ5zezvR@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-254763-227@https.bugs.freebsd.org/bugzilla/>
index | next in thread | previous in thread | raw e-mail
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=254763 titus m <titus@edc.ro> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |titus@edc.ro --- Comment #29 from titus m <titus@edc.ro> --- Created attachment 265621 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=265621&action=edit patch to libregex to fix slow ignore case matching REG_ICASE matching is mega slow because the current code expands every character in the search pattern to both cases ex a search -i for foobarbaz will generate an equivalent of [fF][oO][oO][bB][aA][rR][bB][aA][zZ] this will prevent the subsequent code to create a "must" pattern and user Boyer-Moore the patch fixes it i run the netbsd testcase against the patched version and it passed all more details at https://forums.freebsd.org/threads/fgrep-excessive-time-increase-after-upgrade-from-12-4-to-14-3-regex-library-issue.100124/#post-727610 onwords the second patch posted on the forum is the same as here -- You are receiving this mail because: You are the assignee for the bug.help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-254763-227-wRGQ5zezvR>
