I am using the following code to save an NSMutableArray to disk:
[myArray writeToFile:filePath atomically:YES];
Assuming an array of roughly 400 objects, can anyone tell me if saving via this method is a time-consuming process? At the moment there is potential for the file to be saved multiple times in rather quick succession (something I am trying to fix), but I was wondering if this could cause a problem at some stage if the array gets much bigger?
Kind regards
For reference, iPod Touch 4 flash write speed is ≈ 18 MB/s (I’ve used code from this article for measurements).
You may see what is the size of saved file on the device by going to Xcode Organizer → Devices tab → In your device select Applications → Your application → Select file and press Download.
For simulator, go to
~/Library/Application Support/iPhone Simulator/<iOS version>/Applications/<App ID>/Documents.