writeToFile for memory mapped NSData
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