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

QML instantiation performance decadence

    XMLWordPrintable

Details

    Description

      QML element instantiation performance has dropped dramatically from Qt 5.1.1 (30..80%).
      My assumption it relates to the V4 change but that is to be verified.

      The issue relates to component instantiation and affects application startup and most,
      if not all, later dynamic component instantiation when application is running.

      The issue is real, severe, measurable and repeatable.
      It has been verified on several ARM platforms and desktops with both X11 and EGLFS QPA.
      The issue affects all Qt versions starting from and including 5.2. It has been verified
      to occur with several real world applications as well as mickey mouse clock applications.

      This is a severe problem for embedded usecases where we don't afford to keep all UI pages
      or elements in-memory, effectively rendering QML unusable after 5.1 on embedded platforms.
      No potential runtime performance improvement on javascript side compensates this kind of drop
      in instantiation performance.

      I have attached two testruns of tst_librarymetrics_performance performed on Fedora with
      5.1.1 and 5.3.1. They provide pretty good repeatibility and overview of the problem.
      As stated the issue is not specific to this testcase. Please note that you need to have
      the following patches to run the tests,
      on Qt 5.3.1:
      https://codereview.qt-project.org/#/c/101048/
      on Qt 5.1.1:
      https://codereview.qt-project.org/#/c/60445/1/src/quick/items/qquickitemsmodule.cpp
      Also for example qtquickcontrols gallery example will do.

      Attachments

        1. 511_librarymetrics_performance.txt
          43 kB
        2. 531_librarymetrics_performance.txt
          43 kB
        3. 540_qurlcached_librarymetrics_performance.txt
          43 kB
        4. importtest.tar.gz
          0.6 kB
        5. IRCopies.png
          IRCopies.png
          665 kB
        6. results-5.1.txt
          50 kB
        7. results-5.12.txt
          50 kB

        Issue Links

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

          Activity

            People

              shausman Simon Hausmann
              juhvu Juha Vuolle (Inactive)
              Votes:
              17 Vote for this issue
              Watchers:
              32 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes