views:

276

answers:

0

Hi, I'm using qt 4.6 porting a j2me app to native Windows mobile 6 professional. All is working ok but my app takes about 10 seconds to startup that is too much in my opinion. Even a simple hello world app takes about 8 seconds to start. I've tried recompiling qt using a lot of -no-something, like this:

c:\Qt\4.6.0\configure.exe -qconfig wcemobile -release -nomake examples -nomake demos -opensource -ltcg -fast -no-exceptions -no-accessibility -no-stl -no-rtti -no-sql-sqlite -no-qt3support -no-opengl -no-openvg -no-gif -no-libmng -no-libtiff -no-libjpeg -no-openssl -no-dbus -no-phonon -no-phonon-backend -no-multimedia -no-webkit -no-script -no-scripttools -no-declarative -arch windowsce -no-style-windowsxp -no-style-windowsvista -no-style-plastique -no-style-cleanlooks -no-style-motif -no-style-cde -qt-style-windowsce -qt-style-windowsmobile -no-native-gestures -no-cetest  -platform win32-msvc2008 -xplatform wincewm60professional-msvc2008

With this configuration the resulting Qtcore4.dll is 1.770kb and QtGui4.dll is 4.018kb but still the hello world takes 8-10 seconds to start.

I've tried to compile with -static with the same options, and the resulting exe is about 4mb but still it take the same time to start.

I've tried to compress dll and executable with upx: they became smaller but the time to start is the same

I'm testing the hello-wolrd app on a Samsung Omnia 2. On an old HTC P3300 it takes about 15 seconds to start!

Is this start-time normal? How can I improve this start-time?

Regards Fabio