qt5base-lts/tests/auto/corelib/tools/qregularexpression
Giuseppe D'Angelo 260f24228b QRegularExpression: add ways to force an immediate optimization
The fact that we kick in a pattern study and possibly a JIT compilation
after an undocumented number of usages is suboptimal, for a number
or reasons: users may want to JIT compile a pattern immediately,
and at the same time they may not want a random delay in the program
(due to the pattern getting optimized at a random usage).

So: add an optimize() call to force an immediate pattern optimization,
and a pattern option to force an optimization on the first usage.

Change-Id: I95efdecfd31f11ca7cceb9c05037df613601a11c
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
2014-05-06 00:10:55 +02:00
..
alwaysoptimize Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
defaultoptimize Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
forceoptimize QRegularExpression: add ways to force an immediate optimization 2014-05-06 00:10:55 +02:00
.gitignore QRegularExpression: add ways to force an immediate optimization 2014-05-06 00:10:55 +02:00
qregularexpression.pro QRegularExpression: add ways to force an immediate optimization 2014-05-06 00:10:55 +02:00
tst_qregularexpression.cpp QRegularExpression: add ways to force an immediate optimization 2014-05-06 00:10:55 +02:00
tst_qregularexpression.h QRegularExpression: print a warning if (?J) is used in a pattern 2013-02-12 22:40:21 +01:00