Qml file and performance



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


  • Moderators

    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.



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



  • QML, JS are interpretable.


  • Moderators

    [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.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.