Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. QML compiler?
Forum Updated to NodeBB v4.3 + New Features

QML compiler?

Scheduled Pinned Locked Moved QML and Qt Quick
6 Posts 3 Posters 4.5k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    bkamps
    wrote on last edited by
    #1

    I'm having QML performance issues (loading a couple simple QML files already takes 2 seconds on my embedded ARM target).

    When a QML file is loaded the file is parsed, compiled and objects are created.

    Is there a way to compile the QML files to a binary format so there is no more need to parse and compile? "Discussion about this":http://www.mail-archive.com/interest@qt-project.org/msg02247.html

    1 Reply Last reply
    0
    • A Offline
      A Offline
      andre
      wrote on last edited by
      #2

      No. It was mentioned as an idea, but AFAIK, no-once put in the effort to actually implement it.

      1 Reply Last reply
      0
      • B Offline
        B Offline
        bkamps
        wrote on last edited by
        #3

        So there is no way to skip the parse / compiling step?

        Well then I guess it's time to optimze my QML to the max....

        1 Reply Last reply
        0
        • L Offline
          L Offline
          lgeyer
          wrote on last edited by
          #4

          Have you already profiled your application to find out where your performance bottleneck acutally is?

          Qt 5 includes the qmlmin tool which tries to reduce QML files.

          1 Reply Last reply
          0
          • B Offline
            B Offline
            bkamps
            wrote on last edited by
            #5

            I was trying to setup the profiler and got it working (but I had to leave work, so to be continued on monday :)).

            One of the issues I already found myself is that I use a lot (20 or so) loading to dynamicly load Windows. For each loader I use Binding to connect C++ and QML when the loader loads a Window. When I remove the loaders this save me about 5 seconds of parse/compile QML time! Do you have a suggestion how to optimze this?

            1 Reply Last reply
            0
            • L Offline
              L Offline
              lgeyer
              wrote on last edited by
              #6

              Unfortunately not. At first I would say you should try to get the profiler up and running to find out where you actually need to improve performance.

              If you still face problems in certain situations I would suggest to take the issues to the mailing list (development@qt-project.org).

              1 Reply Last reply
              0

              • Login

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved