Docs for NSDataReadingOptions state:
NSDataReadingUncached
Hint indicating that the file should not be stored in the file system caches. To read data once and discard this option can improve performance.
It all makes sense. I am curious if there is a way to find out if the file is in the sysem file caches.
For example, if I need to do a large amount of file reading, it might make sense to prioritize reading files that are already in the cache.
caching cocoa
Mike abdullah
source share