diff options
author | ph10 <ph10@6239d852-aaf2-0410-a92c-79f79f948069> | 2019-05-28 16:34:28 +0000 |
---|---|---|
committer | ph10 <ph10@6239d852-aaf2-0410-a92c-79f79f948069> | 2019-05-28 16:34:28 +0000 |
commit | 8dc2afce13214b29b1c901bcc6954b71313cdff3 (patch) | |
tree | 07a5aec97b22789a02844a8c0dc05ced8be56392 /src/pcre2_internal.h | |
parent | 0db7752db847fecaf0717312d3fd284b2b69ca26 (diff) | |
download | pcre2-8dc2afce13214b29b1c901bcc6954b71313cdff3.tar.gz |
Tweak limits on "must have" code unit searches (improves some performance).
git-svn-id: svn://vcs.exim.org/pcre2/code/trunk@1097 6239d852-aaf2-0410-a92c-79f79f948069
Diffstat (limited to 'src/pcre2_internal.h')
-rw-r--r-- | src/pcre2_internal.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/pcre2_internal.h b/src/pcre2_internal.h index 814d91b..7fd8044 100644 --- a/src/pcre2_internal.h +++ b/src/pcre2_internal.h @@ -535,13 +535,14 @@ enum { PCRE2_MATCHEDBY_INTERPRETER, /* pcre2_match() */ #define MAGIC_NUMBER 0x50435245UL /* 'PCRE' */ /* The maximum remaining length of subject we are prepared to search for a -req_unit match. In 8-bit mode, memchr() is used and is much faster than the -search loop that has to be used in 16-bit and 32-bit modes. */ +req_unit match from an anchored pattern. In 8-bit mode, memchr() is used and is +much faster than the search loop that has to be used in 16-bit and 32-bit +modes. */ #if PCRE2_CODE_UNIT_WIDTH == 8 -#define REQ_CU_MAX 2000 +#define REQ_CU_MAX 5000 #else -#define REQ_CU_MAX 1000 +#define REQ_CU_MAX 2000 #endif /* Offsets for the bitmap tables in the cbits set of tables. Each table |