We’ve been using json.decode for a while now, but for large files it can often hog CPU time when decoding large files. We are looking into making an asynchronous json decode function using enterprise, but we would like to know what library are you guys using on the native side?
The main problem is that we need to decode around 20 files dynamically, out of around 200. We do not want to create a loading screen in this scene, since it can easily discourage the user from using it altogether, and cannot load the 200 because they can hog memory very easily.
Decoding time for a string 250000 characters long takes 150 - 160 milliseconds, which if we multiply by 20, we have a 3 second stall, which is significant for animations, transitions and other stuff, and looks sloppy overall. What we are doing to improve the sloppiness is to let the screen refresh after each decode, which improves but definitely does not fix the issue.
It would be ideal to have an asynchronous decode function. Are there any plans for this? What json library does Corona use internally?