Loading times in Android

334 views
Skip to first unread message

Víctor R. Escobar

unread,
Mar 17, 2014, 4:37:03 PM3/17/14
to kivy-...@googlegroups.com
Hi Kivy users,

I tried some kivy apps and examples, I even have build a mini app for android. Although I like a lot python and it compiles all the code to pyc and the modules as C I always feel that the programs loads so much slow; in my newest android device they need longer than 5 seconds, some apps even last over 12 seconds in the loading screen.

Does anyone know if it is possible to reduce that loading time to less than 1 or 2 seconds? Did anyone try to compile everything to C using cython and make a wrapper in Java? Did it go faster?

Thanks for the answers!

Ben Rousch

unread,
Mar 17, 2014, 5:10:36 PM3/17/14
to kivy-...@googlegroups.com
The reason it's slow is because it loads an entire Python environment. It has been optimized quite a bit to get the current speed (and APK size).


--
You received this message because you are subscribed to the Google Groups "Kivy users support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kivy-users+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
 Ben Rousch
   bro...@gmail.com
   http://clusterbleep.net/

qua-non non

unread,
Mar 17, 2014, 5:54:02 PM3/17/14
to kivy-...@googlegroups.com
On newer android devices it shouldn't take more than 1.5 secs

Make sure you minimize your i/o, use atlas use as few files in your project as possible
This ^ makes a huge difference so check again.

Make sure to follow python performance guidelines.
Reduce the amount of extra stuff in your apk that is not used

The first run time is slow as the app is deflating it's data on the first run
Reply all
Reply to author
Forward
0 new messages