• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: File system caching of - xxxxWithContentsOfFile:
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >File system caching of - xxxxWithContentsOfFile: (From: "email@hidden" <email@hidden>)

  • Prev by Date: Re: Losing my memory - a caching problem?
  • Next by Date: Re: Set the Cursor Position
  • Previous by thread: File system caching of - xxxxWithContentsOfFile:
  • Next by thread: key pair generation problem
  • Index(es):
    • Date
    • Thread