Android standalone extremely slow on simple operations
Posted: Wed Oct 26, 2016 3:33 pm
Hello,
I just made a simple multiple choice question app for a customer. It is running very well on Windows and in the IDE.
Now I deployed the stack to a somewhat older Android tablet - and it takes the app about 20 seconds before the start page appears. After that everything is working fine and smooth.
Experimenting I found out that the delay is caused by a script that sorts 270 lines of questions and puts them in an array of categories. This script takes exactly 13 milliseconds in Windows. On Android I measured that this script takes 20 seconds - that means almost 10.000 times as long. How can this be possible? When I leave out the script, the Android version starts after 1 second.
Has anyone experienced similar problems with Android - and maybe found a solution or a workaround?
Happy for any hint.
Kroka
I just made a simple multiple choice question app for a customer. It is running very well on Windows and in the IDE.
Now I deployed the stack to a somewhat older Android tablet - and it takes the app about 20 seconds before the start page appears. After that everything is working fine and smooth.
Experimenting I found out that the delay is caused by a script that sorts 270 lines of questions and puts them in an array of categories. This script takes exactly 13 milliseconds in Windows. On Android I measured that this script takes 20 seconds - that means almost 10.000 times as long. How can this be possible? When I leave out the script, the Android version starts after 1 second.
Has anyone experienced similar problems with Android - and maybe found a solution or a workaround?
Happy for any hint.
Kroka