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

tst_bench_vector's QRawVector needs a substantial rewrite for Qt 6

    XMLWordPrintable

Details

    • Task
    • Resolution: Unresolved
    • P4: Low
    • None
    • 6.0.0, 6.2
    • None
    • All

    Description

      The benchmark for QVector contains a "raw vector" test (originally introduced in Qt 4.7 to compare performance with that of std::vector) which does some positively devious hackery to overwrite the memory of a QVector with an ersatz object that has the same layout as a Qt 5 QVector.
      Given the drastic change in the internal layout of QVector at Qt 6 (due to its conversion to QList, alongside major reworking of QArrayData), this ersatz object is no longer up to the job.

      I shall disable the relevant test and tag it with this issue's ID, for re-enabling when this heinous hackery has been reworked.

      Attachments

        Issue Links

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

          Activity

            People

              cnn Qt Core & Network
              Eddy Edward Welbourne
              Vladimir Minenko Vladimir Minenko
              Alex Blasche Alex Blasche
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes