I am working on android multiplayer game. My JSON file contains 800 000+ dictionary words. JSON array is being loaded in List once players enter GameActivity to actually play game. So each time player starts 1vs1 game, JSON is being loaded into a List<>.
Now, I have 2 options:
Load JSON the most optimal way so user does not get out of memory error after a while
Load JSON file into a List<> only once, when application is open.
I'm not sure about any of these 2 cases, can someone give me a hand on how to do this please? Thank you