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

QList - double performance drop

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P3: Somewhat important P3: Somewhat important
    • 6.0
    • 6.0.0 Alpha
    • None
    • core i7-8700
    • Windows
    • 8
    • Qt6_Foundation_Sprint 20, Qt6_Foundation_Sprint 21, Qt6_Foundation_Sprint 22

      This simple code show QList double performance drop for Qt 6

      QElapsedTimer timer;
      timer.start();    
      QList<QString> list;
      int count = 1000000;
      for (int i = 0; i < count; i++) {
           list.append(QString::number(i));
      }    
      qDebug() << timer.elapsed();
      

      On my machine it prints (release build):

      Qt 5.15.1: 117

      Qt 6.0 alpha: 321

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

            agolubev Andrei Golubev
            n_r_w n_r_w
            Maurice Kalinowski Maurice Kalinowski
            Alex Blasche Alex Blasche
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved: