• 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: NSMutableArray + NSEnumerator = No Memory
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSMutableArray + NSEnumerator = No Memory


  • Subject: Re: NSMutableArray + NSEnumerator = No Memory
  • From: "Igor Mozolevsky" <email@hidden>
  • Date: Sat, 22 Sep 2007 21:11:05 +0100

On 22/09/2007, Igor Mozolevsky <email@hidden> wrote:
>
> 900,000,000 * 4 = 3,600,000,000 BYTES!!! MacOS X per application
> memory limit = 4GB (last time I checked), that's with all the UI
> candy, ObjC baggage, etc!  Can you not process them a small bunch at a
> time?
>
> --
> Igor M.

Hmm... Seems I pressed send instead of save... Anyway, as I was
saying, do you actually need all of them in memory? The way I deal
with loading in large files before doing anything with them is that I
read a chunk in, process that, then read th next chunk into the same
memory space... Can't really comment any further as you've not really
said how the collection is structured or why you need N*N elements....


--
Igor M.
_______________________________________________

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: 
 >NSMutableArray + NSEnumerator = No Memory (From: James Bucanek <email@hidden>)
 >Re: NSMutableArray + NSEnumerator = No Memory (From: "Igor Mozolevsky" <email@hidden>)

  • Prev by Date: Re: NSMutableArray + NSEnumerator = No Memory
  • Next by Date: Re: NSMutableArray + NSEnumerator = No Memory
  • Previous by thread: Re: NSMutableArray + NSEnumerator = No Memory
  • Next by thread: Re: NSMutableArray + NSEnumerator = No Memory
  • Index(es):
    • Date
    • Thread