Re: File system caching of - xxxxWithContentsOfFile:
Re: File system caching of - xxxxWithContentsOfFile:
- Subject: Re: File system caching of - xxxxWithContentsOfFile:
- From: Ken Ferry <email@hidden>
- Date: Thu, 19 Aug 2010 19:39:06 -0700
By default all file access is Mac OS X is cached, external to the process,
in the unified buffer
cache<http://www.usenix.org/publications/library/proceedings/usenix2000/freenix/full_papers/silvers/silvers_html/>.
Certain APIs may disable it if they're pretty sure it's wrong, but for the
most part, if you don't see an option, it's probably not being turned off.
None of these APIs turn it off.
-Ken
On Wed, Aug 18, 2010 at 7:10 AM, email@hidden <
email@hidden> wrote:
>
> The following classes implement either -initWithContentsOfFile: or an
> appropriate similar factory method.
>
> NSData
> NSArray
> NSCharacterSet
> NSImageRep
> NSSound
> NSString
>
> Only NSData provides a method which allows an option to control file read
> caching - dataWithContentsOfFile:options:error:
>
> For non NSData classes does calling -initWithContentsOfFile: result in
> data being cached by the file system?
>
> Regards
>
> Jonathan Mitchell
>
> Developer
> Mugginsoft LLP
> http://www.mugginsoft.com
>
>
>
>
>
>
>
> _______________________________________________
>
> Cocoa-dev mailing list (email@hidden)
>
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
>
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
>
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden