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

QQmlPropertyMap bad performances at insertion

    XMLWordPrintable

Details

    • 105d10dea9d790a69595a2e73e8fea80a5d1a3ad (qtbase)

    Description

      I ported an application from Qt4 to Qt5 and I have performance issues with QDeclarativePropertyMap/QQmlPropertyMap.

      The insertion time is way slower in Qt5.

      Test done with 500 insertions :

      QDeclarativePropertyMap on Qt4 : ELLAPSED TIME = 66 ms
      QDeclarativePropertyMap map;
      QElapsedTimer timer;
      timer.start();
      
      for(int i=0; i < 500; i++) {
         map.insert(QString::number(i),QString::number(i));
      }
      
      qDebug() << "ELAPSED TIME : " << timer.elapsed();
      
      QDeclarativePropertyMap on Qt5 : ELLAPSED TIME = 2911 ms
      QDeclarativePropertyMap  map;
      QElapsedTimer timer;
      timer.start();
      
      for(int i=0; i < 500; i++) {
          map.insert(QString::number(i),QString::number(i));
      }
      
      qDebug() << "ELAPSED TIME : " << timer.elapsed();
      
      QQmlPropertyMap on Qt5 : ELLAPSED TIME = 2922 ms
      QQmlPropertyMap map;
      QElapsedTimer timer;
      timer.start();
      
      for(int i=0; i < 500; i++) {
          map.insert(QString::number(i),QString::number(i));
      }
      
      qDebug() << "ELAPSED TIME : " << timer.elapsed();
      

      Attachments

        Issue Links

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

          Activity

            People

              shausman Simon Hausmann
              x-krys Christopher Courtois
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes