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

tst_bench_vector's QRawVector needs a substantial rewrite for Qt 6

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Open
    • Priority: P4: Low
    • Resolution: Unresolved
    • Affects Version/s: 6.0.0, 6.2
    • Fix Version/s: None
    • Labels:
      None
    • Platform/s:
      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

              Assignee:
              cnn Qt Core & Network
              Reporter:
              Eddy Edward Welbourne
              PM Owner:
              Vladimir Minenko Vladimir Minenko
              RnD Owner:
              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