QRegularExpression: enable JIT study for partial matching too
Task-number: QTBUG-38034 Change-Id: I0edc1c0b5e3be5fd12a91007b68e5eff7ccc7e40 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com> Reviewed-by: Lars Knoll <lars.knoll@digia.com>
This commit is contained in:
parent
5bc4dd3c3b
commit
414a411c27
@ -1120,7 +1120,7 @@ void QRegularExpressionPrivate::optimizePattern()
|
||||
|
||||
int studyOptions = 0;
|
||||
if (enableJit)
|
||||
studyOptions |= PCRE_STUDY_JIT_COMPILE;
|
||||
studyOptions |= (PCRE_STUDY_JIT_COMPILE | PCRE_STUDY_JIT_PARTIAL_SOFT_COMPILE | PCRE_STUDY_JIT_PARTIAL_HARD_COMPILE);
|
||||
|
||||
const char *err;
|
||||
pcre16_extra * const localStudyData = pcre16_study(compiledPattern, studyOptions, &err);
|
||||
|
Loading…
Reference in New Issue
Block a user