bruns added inline comments.

INLINE COMMENTS

> apol wrote in svg.cpp:123
> static isn't necessary, QRegularExpression already has internal regex 
> compilation optimisations we can leverage.
> Does the assert bother you?

Are you sure about this? As far as I can see:

`QRegularExpression::QRegularExpression(QString pattern)` default constructs a 
`QRegularExpressionPrivate`, which sets `dirty(true)`.

Calling `QRE::globalMatch()` calls `QREPrivate::compilePattern`, which calls 
`pcre2_compile_16` and `pcre2_jit_compile_16`.

https://code.woboq.org/qt5/qtbase/src/corelib/tools/qregularexpression.cpp.html#_ZN25QRegularExpressionPrivate14compilePatternEv

I don't see any caching here.

REPOSITORY
  R242 Plasma Framework (Library)

REVISION DETAIL
  https://phabricator.kde.org/D21788

To: apol, #plasma, #frameworks
Cc: bruns, kde-frameworks-devel, LeGast00n, michaelh, ngraham

Reply via email to