Hi there,
I’m having trouble dealing with a big file in my app. Basically I have a dictionary with ~700000 words and I have to load it into a hashtable in the beginning of my words game. The problem is that it’s taking too long to load(~15 sec in my cellphone) and the file is too big (18 mb).
Here’s what I’ve tried:
1-Read everything line by line from a txt file
2-store the dictionary in a json file and then decoding it at the beginning of the program
Both these metods weren´t efficient
3-I then tried to store it in a table inside a lua module and then requiring it.The file was too big and corona didn’t accept that.
4-pre-compile the file to .luac archive and put it in the resourse directory.Corona didn’t accept that either.
Is there a way that reduces drastically the load time and possibly the file size?
thanks