• 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: Allocating too much memory kills my App rather than returning NULL
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Allocating too much memory kills my App rather than returning NULL


  • Subject: Re: Allocating too much memory kills my App rather than returning NULL
  • From: David Duncan <email@hidden>
  • Date: Wed, 9 Nov 2011 13:00:44 -0800

On Nov 8, 2011, at 10:51 PM, Don Quixote de la Mancha wrote:

> It's user-configurable.  If the user asks for too big a grid, I want to be able to tell them that there isn't enough memory, then suggest they try a smaller grid.


In a naive implementation using 1 byte per cell and a full duplicate of state for advancement, you can support an 8192x8192 grid in 128MB of memory, which while high is supportable on all devices that support iOS 5. With various optimizations you can increase this size significantly of course.

But at a completely practical level, is 8K x 8K not a big enough max grid size?
--
David Duncan

_______________________________________________

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: Allocating too much memory kills my App rather than returning NULL
      • From: Sandy McGuffog <email@hidden>
References: 
 >Allocating too much memory kills my App rather than returning NULL (From: Don Quixote de la Mancha <email@hidden>)
 >Re: Allocating too much memory kills my App rather than returning NULL (From: Graham Cox <email@hidden>)
 >Re: Allocating too much memory kills my App rather than returning NULL (From: Don Quixote de la Mancha <email@hidden>)

  • Prev by Date: Re: How to compiler arm assembler .s source file with Xcode 4.2?
  • Next by Date: Re: Tip: how to fix failure to compile ivars in class extensions
  • Previous by thread: Re: Allocating too much memory kills my App rather than returning NULL
  • Next by thread: Re: Allocating too much memory kills my App rather than returning NULL
  • Index(es):
    • Date
    • Thread