Posted: 10th May 2021 16:10
Can anybody help me speed up the load times of my APK? https://forum.thegamecreators.com/thread/203493 -I have found this post, but can't find where to put the text file. Windows, broadcasting, and Html5 instantly load. APK takes 30 seconds plus to load.
Posted: 10th May 2021 20:34
I believe all you have to do is save the file once, after you have read it in. It automatically goes into your sandboxed area, and thenceforth AppGameKit checks for the file in the sandboxed area.

Another option would be to save the data in a array beforehand and use the load array function to read it in. I'm thinking array loads are faster than a readline() loop.
Posted: 10th May 2021 23:23
ranietz began discussion on discord ~6 months ago re: reading a 760k word file, line by line, which took many (many) minutes on android.

in the end, loading 768k words as a .json array file, instead, took a mere 1.6 seconds. see the array (2.0) guide (near the bottom) re: saving as .json

otherwise, the thread title (same with the old thread you referenced) cite the actual parsing as being the slowdown so i'm a little confused about your inquiry; especially where it includes "where to put the text file"?) so, if rich and i are off the mark, let us know?
Posted: 11th May 2021 9:30
Thanks for your replies. Converting to a Json array worked perfectly. I was working under the assumption that compression was the issue.