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

titus m <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #29 from titus m <[email protected]> ---
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.

Reply via email to