[pcre-dev] [Bug 2430] Severe performance decrease in (8-bit)…

Top Page

Reply to this message
Author: admin
Date:  
To: pcre-dev
Subject: [pcre-dev] [Bug 2430] Severe performance decrease in (8-bit) case-insensitive mode
https://bugs.exim.org/show_bug.cgi?id=2430

--- Comment #4 from Andreas Bergmann <andreas.bergmann@???> ---
Created attachment 1219
--> https://bugs.exim.org/attachment.cgi?id=1219&action=edit
Prefer while to memchr

FYI - Knowing that UCHAR21TEST for now is just dereferencing 'start_match',
I've found using the while loop that is in place for other than 8-bit unit
widths a viable workaround (see attached patch):

 1048576 bytes    0.000078 sec   (?i)abc
 1048576 bytes    0.000121 sec   (a|A)(b|B)(c|C)
 1048576 bytes    0.000091 sec   [aA][bB][cC]


--
You are receiving this mail because:
You are on the CC list for the bug.