Re: file reading/writing over 2 gig
Re: file reading/writing over 2 gig
- Subject: Re: file reading/writing over 2 gig
- From: Jaime Magiera <email@hidden>
- Date: Mon, 13 Aug 2007 02:55:05 -0400
On Aug 12, 2007, at 2:04 PM, Alastair Houghton wrote:
No, you're limited by the amount of address space in a 32-bit
process, whether you use NSData or not.
It was mentioned that NSData, as part of Cocoa, is not 64-bit yet.
However, Posix is on 64-bit machines. Wouldn't that mean that fread
(), rwrite(), would have larger space to access on those machines?
Larger than NSData?
It's much better, if you have to iterate through a file working on
the data, to do it in large-ish blocks, not single bytes.
Otherwise your code will be very slow.
Right, I can toy with read length. The idea is that NSData can't
capture the entire file.
Jaime Magiera
Sensory Research
http://www.sensoryresearch.net
_______________________________________________
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