• 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: Help with NSData dataWithContentsOfURL
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Help with NSData dataWithContentsOfURL


  • Subject: Re: Help with NSData dataWithContentsOfURL
  • From: Graham Cox <email@hidden>
  • Date: Thu, 4 Feb 2010 16:27:55 +1100

On 04/02/2010, at 4:21 PM, Michael Ash wrote:

> Why is everybody so worried about loading an excessive amount of data
> if it's a directory, but not if it's a file? HFS+ is capable of
> holding files over a billion gigabytes long, which you're going to
> have a certain amount of trouble squeezing into RAM. (Or onto any kind
> of storage, for that matter.)
>
> If you know that your data will fit into RAM, then you can read it all
> at once. If you're not certain, then you must read it in pieces.
> Whether the data in question is a single file or a directory of files
> doesn't influence this decision at all.


True, but I guess that with a single file you can find out its size ahead of time easily, whereas with a directory it's quite a bit more involved to find out the size of it.

--Graham

_______________________________________________

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: 
 >Help with NSData dataWithContentsOfURL (From: cocoa-dev <email@hidden>)
 >Re: Help with NSData dataWithContentsOfURL (From: Graham Cox <email@hidden>)
 >Re: Help with NSData dataWithContentsOfURL (From: cocoa-dev <email@hidden>)
 >Re: Help with NSData dataWithContentsOfURL (From: Charles Srstka <email@hidden>)
 >Re: Help with NSData dataWithContentsOfURL (From: Michael Ash <email@hidden>)

  • Prev by Date: Re: Help with NSData dataWithContentsOfURL
  • Next by Date: Re: EnumeratorAtPath and duplicate files during drag to open
  • Previous by thread: Re: Help with NSData dataWithContentsOfURL
  • Next by thread: Re: Help with NSData dataWithContentsOfURL
  • Index(es):
    • Date
    • Thread