• 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 reading/writing over 2 gig
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: file reading/writing over 2 gig
      • From: Brian Willoughby <email@hidden>
References: 
 >file reading/writing over 2 gig (From: Jaime Magiera <email@hidden>)
 >Re: file reading/writing over 2 gig (From: Sherm Pendley <email@hidden>)
 >Re: file reading/writing over 2 gig (From: Jaime Magiera <email@hidden>)
 >Re: file reading/writing over 2 gig (From: Alastair Houghton <email@hidden>)

  • Prev by Date: Re: iPhoto 08 Plugin SDK question
  • Next by Date: Re: Any way to ensure that my app will terminate before Finder does on log out, restart, etc.?
  • Previous by thread: Re: file reading/writing over 2 gig
  • Next by thread: Re: file reading/writing over 2 gig
  • Index(es):
    • Date
    • Thread