If you have a gigantic static const array (say, several tens of megabytes) that never changes and is used only at startup, is it automatically unloaded when there is not enough memory? That is, iOS knows that your static const data can just be reloaded from your application package?
The obvious alternative is to put this data in a file and either a memory card, either as data in readonly mode (which, of course, was automatically unloaded), or read it in the malloc'd buffer and free it when it is done, but it more work than necessary in this case?
source
share