LWalksaway
Lurker
I've been stuck on saving complex objects for a little while now... Essentially I have many copies of a conways game of life running in parallel and I am trying to save complex details for each cell and each copy of the game. Each instance of the game might have ~1 dozen unique parameters, and each of its individual cells might have 3-4 dozen unique parameters.
I've looked into SharedPreferences, and that seemed like it might be an ok place to keep a few things, but I might have upwards of 100,000 cells for some instances so it seemed impractical. I didn't want to get into an SQL database for this because it doesn't seem like it would be as fast, but maybe that's what I need? I'm not opposed to it. Right now I'm digging into JSON/GSON and it almost seemed perfect but from what I can tell I might need to recreate each of my objects rather than being able to load them from file? I've been at this roadblock for a few days now and my code is just starting to turn into a giant mess... I'm just not sure what I should be using to try and store this kind of data... please help! xD
I've looked into SharedPreferences, and that seemed like it might be an ok place to keep a few things, but I might have upwards of 100,000 cells for some instances so it seemed impractical. I didn't want to get into an SQL database for this because it doesn't seem like it would be as fast, but maybe that's what I need? I'm not opposed to it. Right now I'm digging into JSON/GSON and it almost seemed perfect but from what I can tell I might need to recreate each of my objects rather than being able to load them from file? I've been at this roadblock for a few days now and my code is just starting to turn into a giant mess... I'm just not sure what I should be using to try and store this kind of data... please help! xD