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

Grouped property bindings have big impact on creation time

    XMLWordPrintable

Details

    • 64b8ce5f60d0595fcc511ca860066f2d946db8f3

    Description

      Test case:

      import QtQuick 2.0
      
      Item {
          property int abc: properties.foo // <-- FAST (< 1ms)
          // property int def: group.foo // <-- SLOW (~400ms)
      
          property QtObject group: QtObject {
              id: properties
              property int foo: 0
          }
      }
      

      Steps:

      • run via QML profiler -> creation time is some hundreds of _micro_seconds
      • comment out 'abc' & uncomment 'def' -> creation time is some hundreds of _milli_seconds

      Attachments

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

        Activity

          People

            glwatson Glenn Watson
            jpnurmi J-P Nurmi
            Votes:
            2 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes