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

Add a version of split() to QString that returns QList<QStringRef>

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Done
    • P3: Somewhat important
    • None
    • None
    • None
    • f5c31262011f7fbcbff5ee91b0df22e4373dd2c1

    Description

      I think a significant performance boost in text parsing can be achieved if a kind of split() is added to QString that returns QList<QStringRef>.

      The attached QTest project contains microbenchmarks to compare QString::split() with a similar function using QStringRef. I have observed execution speed increases from 15% to 35% compared to QString::split() on different setups. I think even %15 improvement is compelling assuming that implementing such a new member function is rather simple.

      Attachments

        1. Parse_2.zip
          2 kB
        2. Parse.zip
          1 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            thiago Thiago Macieira
            ckakman Kayra Akman
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes