Best QML file length?
-
What is a good length for a QML file? I searched a few "QML Best Practices" pages but did not find anything.
Is there a "Best Practice" regarding the number of lines of code in a QML file?
@stan.m
no, but this anyway heavily depends on the target machine's hardware capabilities -
@stan.m
no, but this anyway heavily depends on the target machine's hardware capabilities@raven-worx
Thank you for the response.How does QML file length depend on the target machine's hardware capabilities?
I was considering the impact of file length on readability and code maintainability... are you referring to how the target compiles the QML on-the-fly or whether or not the target has hardware acceleration for graphics?
-
@raven-worx
Thank you for the response.How does QML file length depend on the target machine's hardware capabilities?
I was considering the impact of file length on readability and code maintainability... are you referring to how the target compiles the QML on-the-fly or whether or not the target has hardware acceleration for graphics?
@stan.m
QML is basically interpreted (unless you use the qmlcompiler)
Also if you hold the file/module/component size small it is ensured that only the necessary parts are loaded.
The stronger the machine the more you wont notice any performance impacts of course.