• 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
writeToFile for memory mapped NSData
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

writeToFile for memory mapped NSData


  • Subject: writeToFile for memory mapped NSData
  • From: Andy Klepack <email@hidden>
  • Date: Thu, 21 Jan 2010 17:13:34 +0000
  • Thread-topic: writeToFile for memory mapped NSData

I have an instance of NSData is created using dataWithContentsOfMappedFile: and then written to a different file using writeToFile:atomically:. In many cases there are no calls that would cause the file to be read in between those two operations.

In those cases does the entire file get read into memory and then written, or is the implementation smart enough to just do the disk copy? That is, is it significantly more efficient to use NSFileManager to do a copy when no manipulation of the data is needed?

Thanks,
-Andy
_______________________________________________

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

  • Prev by Date: Uploading image via HTTP POST
  • Next by Date: Re: iPhone: question about orientation
  • Previous by thread: Re: Uploading image via HTTP POST
  • Next by thread: Unexpected PDFKit behavior in -[PDFPage string]
  • Index(es):
    • Date
    • Thread