Details
-
Bug
-
Resolution: Incomplete
-
P3: Somewhat important
-
None
-
5.3.1
-
None
-
iPhone 5 (7.1.1), built on Mac OSX
Description
On iOS I have a StackController loading a component with two MessageDialog items in it. This particular page loaded very slowly so I ran QML profiler on it. It shows that "confirmationDialog" (below) took 76 ms and "downloadDialog" (below) took 66 ms to load with details showing DefaultMessageDialog.qml. Then there is always about 100ms of binding per dialog. Then about 225ms worth of creating (control.qml calling buttonstyle.qml ) per dialog being loaded (this section is a ton of 9-11 ms calls).
So on my page with two message dialogs I am getting the initial 143 ms of creating time then 170 ms of binding time, then about 450 ms of creating/binding for a total of 763ms, almost a full second, just to load the two message dialogs.
MessageDialog { id: confirmationDialog icon: StandardIcon.Question title: "Delete?" text: "Are you sure you want to delete this item? (Will not delete already sent items from the server)" standardButtons: StandardButton.Yes | StandardButton.No property string itemUuid onYes: { DbHelper.delete(itemUuid)//this is a c++ class this.close() } onNo : this.close() }
MessageDialog { id: downloadDialog icon: StandardIcon.Question title: "Download?" text: "Would you like to download this item? (Requires Network Connection)" standardButtons: StandardButton.Yes | StandardButton.No property string itemUuid onYes: { console.log("downloading " + itemUuid + "...(jk, not really)") this.close() } onNo : this.close() }
This only seems to affect iOS, as the same application runs very fast on both an Android device and my Mac Desktop.