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 file and performance
Qt 6.11 is out! See what's new in the release blog

Qml file and performance

Scheduled Pinned Locked Moved QML and Qt Quick
5 Posts 4 Posters 1.9k 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.
  • A Offline
    A Offline
    aabc
    wrote on last edited by
    #1

    Does parameters like spaces, comments, new lines etc. on the Qml file impact performance ?

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      Probably yes, but only when the files are being parsed (at the start of the application). I guess the impact is negligible, but maybe it would be a good idea to check that using a benchmark.

      (Z(:^

      1 Reply Last reply
      0
      • S Offline
        S Offline
        Scrincer
        wrote on last edited by
        #3

        So the qml files arent compiled? It would be interesting to compare the performance of a minimized qml file.

        1 Reply Last reply
        0
        • M Offline
          M Offline
          morte
          wrote on last edited by
          #4

          QML, JS are interpretable.

          1 Reply Last reply
          0
          • sierdzioS Offline
            sierdzioS Offline
            sierdzio
            Moderators
            wrote on last edited by
            #5

            [quote author="Scrincer" date="1415116079"]So the qml files arent compiled? It would be interesting to compare the performance of a minimized qml file.[/quote]

            No, they are interpreted when the application starts - after that there is no need to parse them again. In some situations (release builds on non-embedded platforms), the JavaScript code is compiled using JIT.

            It is possible to compile QML code, a compiler is available in Qt Commercial Package. It is not available in the Open Source version.

            (Z(:^

            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