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

Prepend test data instead of appending

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Done
    • P2: Important
    • 5.6.0 Beta
    • 4.7.4
    • Testing: qtestlib
    • None
    • 7a42c8c15c59ef5fe84e6f293f2c97d38b85599c

    Description

      I have a generated dataset that creates over 2 million rows of data for a unit test (something with security that needs thorough testing). I noticed that adding these rows with QTest::newRow slows down the more you add and it turns out that the rows are stored in a rather naive linked list implementation.
      Every append goes through the whole list to find the last element...

      If someone could change this so it prepends rows instead of appending them, newRow could be done in a constant time.

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              kleint Friedemann Kleint
              wathiant Job Mulder
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes