Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-67134

QRegularExpression: add support for saving & loading precompiled patterns

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • None
    • Core: Other
    • None

    Description

      Hello.

      I have a software that needs to check against huge (700 000+) number of QRegularExpression patterns and the loading and having to optimizing them with QRegularExpression::optimize() takes ages, even with fast computer.

      Could there be function like QRegularExpression::savePattern() / loadPattern() that I could use to save / load compiled patterns to/from disk and make the loading of patterns faster?

      According to PCRE docs saving (non-jit) compiled patterns should be possible

      https://www.pcre.org/original/doc/html/pcreprecompile.html

      Attachments

        For Gerrit Dashboard: QTBUG-67134
        # Subject Branch Project Status CR V

        Activity

          People

            peppe Giuseppe D'Angelo
            crazythinker Stefan Fröberg
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There is 1 open Gerrit change