pass studied pattern

This commit is contained in:
c9s 2014-05-23 11:31:19 +08:00
parent ad6b7b236f
commit 93f4654c54

View file

@ -268,9 +268,7 @@ node * r3_tree_matchl(const node * n, char * path, int path_len, match_entry * e
rc = pcre_exec( rc = pcre_exec(
n->pcre_pattern, /* the compiled pattern */ n->pcre_pattern, /* the compiled pattern */
n->pcre_extra,
// PCRE Study makes this slow
NULL, // n->pcre_extra, /* no extra data - we didn't study the pattern */
path, /* the subject string */ path, /* the subject string */
path_len, /* the length of the subject */ path_len, /* the length of the subject */
0, /* start at offset 0 in the subject */ 0, /* start at offset 0 in the subject */