Hi Aditya,

I suppose the 'cordova' in your email means 'crosswalk-cordova-android', am I 
correct?

I tested the app launch time in CordovaExample generated by 
crosswalk-cordova-android, it is about 1.106 seconds on my Nexus 4.

I used the latest Crosswalk 6 beta: 
https://download.01.org/crosswalk/releases/crosswalk/android/beta/6.35.131.5/arm/crosswalk-cordova-6.35.131.5-arm.zip
The steps to build CordovaExmaple are: 
https://crosswalk-project.org/#wiki/Create-Sample-App-With-Crosswalk-Cordova-Android
The measurement method of launch time is 1) use logcat to record timestamp of 
application start intent ("START u0 { act=android.intent.action.MAIN…") and 
"ondeviceready" timestamp. 2) minus the "ondeviceready" timestamp with start 
intent timestamp.

I also used the SenchaCmd-4.0.4.84 with touch-2.3.1 to generate a Cordova app 
as http://docs-origin.sencha.com/touch/2.3.0/#!/guide/cordova. And I switched 
the default CordovaLib (Android WebView) to Crosswalk WebView as 
https://crosswalk-project.org/#wiki/Moving-Existing-Cordova-App-To-Crosswalk
The "ondeviceready" timestamp - start intent timestamp is 2.043 seconds on 
Nexus 4.

I inspected the Sencha app a little bit, it embeds a SenchaCmd script into the 
index.html like:
<!-- The line below must be kept intact for Sencha Command to build your 
application -->
<script type="text/javascript">(function(e)… </script>
You mentioned in your index.html doesn't have any script except cordova launch 
event handler ("ondeviceready" event handler?). May I know what your index.html 
is like?

Thanks,
-ningxin

From: Crosswalk-help 
[mailto:[email protected]] On Behalf Of Aditya 
Pasumarthi
Sent: Saturday, May 17, 2014 11:22 PM
To: crosswalk-help
Subject: [Crosswalk-help] Cordova app startup time with xwalkview

Hi,

We are using sencha touch + cordova for an Android app. There is a general 
startup time delay for cordova apps.

However we are seeing a 7 second gap between app launch (from app icon tap) and 
when our index.html is loaded. We do not have any script in index.html. We do 
all our app initialization when we get cordova launch event, which is after 
index.html is loaded.

Does everyone experience this delay? If so, any ideas on how to reduce this? If 
not, again any thoughts on how to reduce this and any pointers we should be 
looking at?

Any help is highly appreciated.

--
Regards,
Aditya.

Adityanand Pasumarthi
Co-Founder & Chief Technology Officer (CTO), Stillpoint Software, Inc.
Director, Stillpoint Software India Pvt Ltd.

+91.9246241805 (mobile)
+91.9573960369 (mobile)

DISCLAIMER
The information contained in this eMail is confidential and intended for the 
named recipient(s) only.  If you are not an intended recipient of this eMail 
you must not copy, distribute or take any further action in reliance on it.  
You should delete it and notify the sender immediately
_______________________________________________
Crosswalk-help mailing list
[email protected]
https://lists.crosswalk-project.org/mailman/listinfo/crosswalk-help

Reply via email to