Search code examples
iphoneobjective-cxcodetheory

File access speed



I have got a theoretical question:
I think to use files that store an object's position.(each line contains coordinates x and y)
The data is going to be read from the file 3 times per second.

Is the delay 0.3 s of reading a coordinates from the file is too small? Will my program get necessary information in time?

Thanks.


Solution

  • 540 objects in array is not too much, if it is just texts / numbers. Just do the read-write job in memory. You can write the array to file after the 3-minute.