I recently published my first app. It was written using Corona and runs on mobile devices. The app loads a database of almost 10K words, a process that takes almost 2 to 3 seconds to populate on some mobile devices. It's nearly instant on my iPad 2.
For my next app, I decided to use Construct 2 and re-use the word database. I created an array, and use AJAX to load the file (about 70K) which then populates the array with the words from the dictionary.
The logic looks like this:
<img src="http://chasingquarks.com/holding/capture.png" border="0" />
This is essentially the same process that the other app is doing, however it takes nearly 10S to perform this task in Chrome on my desktop, and over a full minute to perform the same task on the iPad 2 over the wireless LAN.
Can anyone suggest any tips for increasing the performance in Construct 2? I have a few ideas I'm going to test (switching from INSERT to SET, splitting the array up into multiple arrays, etc), but before I spend all night on this I figured I'd ask the experts for other advice.
Also, will CocoonJS increase the speed of arrays on mobile devices, or is it mainly for increasing the performance of visual elements?
Unfortunately the CocoonJS Player won't work on my Samsung Tab 2 7.0 tablet so I can't do any testing to see if the increase is boosted significantly on populating the arrays on mobile or not.
Thanks for your time!