Hi -
What's the best way to load/create a large array of strings? When in a text file, the file is about 2 MB.
The contents will never change so I could keep it in my source (but then my app takes forever to compile), I can store it in a text file and load it, then create the array by using newline as a delimiter but [[[NSString stringWithContentsOfFile:filePath] componentsSeparatedByString"\r\n"] takes about 5 seconds.
Is there a faster/better way?
Thanks
What's the best way to load/create a large array of strings? When in a text file, the file is about 2 MB.
The contents will never change so I could keep it in my source (but then my app takes forever to compile), I can store it in a text file and load it, then create the array by using newline as a delimiter but [[[NSString stringWithContentsOfFile:filePath] componentsSeparatedByString"\r\n"] takes about 5 seconds.
Is there a faster/better way?
Thanks