Details
-
Bug
-
Resolution: Won't Do
-
P3: Somewhat important
-
None
-
5.4.0
-
None
-
Ubuntu 14.10 x64, HTC One e801, Android 4.4, 5
Description
I'm using Enginio from Qt Quick as follows:
EnginioClient {
id: enginioStorage
identity: null
backendId: "5472238ce5bde50e1502ec30"
onError:
onFinished:
{ ... }onSessionAuthenticated: { ... }
onSessionAuthenticationError:
{ ... }}
When I profile my app (on Android) I am seeing a very long (up to 1sec) construction of this object in GUI thread. This makes UI freeze.
On other platforms initialization is also too long.
The pause is caused by call to connectToHostEncrypted here:
https://qt.gitorious.org/qt/qtenginio/source/6fb83a4538ce5cd336b9ef462cf0856fc5379fec:src/enginio_client/enginioclient.cpp#L682
If you comment this line, object construction is very fast, but first usage of the constructed object introduces the same issue.
It seems that this functionality must be moved to separate thread