[Bug 254763] grep very slow with 13.0-RC4
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 24 Nov 2025 14:46:55 UTC
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.