How to manage memory for ios with large csv files?

Posted by Pell000 on Stack Overflow See other posts from Stack Overflow or by Pell000
Published on 2014-06-07T02:09:48Z Indexed on 2014/06/07 3:26 UTC
Read the original article Hit count: 108

Filed under:
|
|

I'm new to ios development, and I'm running into issues relating to memory management and my approaches to dealing with large datasets.

Right now, I am loading the csv files and storing the relevant data as objects in memory at app initialization. Some of the csv files are larger than 1MB, and in total, my app uses about 180MB of memory. This is obviously way too high of a number (unless the info I found is wrong and this is an acceptable number, then please let me know).

I feel as though there is a fundamental flaw in my approach: is there a way I can avoid storing the csv files in the project itself? Or, is there a kind of "lazy" loading I can do so that I can simply look up info in the csv file, as opposed to loading all of the data from it at once?

Any help would do. I think that I need a new perspective in how to manage this more efficiently.

© Stack Overflow or respective owner

Related posts about ios

Related posts about objective-c