• 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: Object for variable array of fixed structures
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Object for variable array of fixed structures


  • Subject: Re: Object for variable array of fixed structures
  • From: Steve Sheets <email@hidden>
  • Date: Tue, 13 Jun 2006 09:51:21 -0400


On Jun 13, 2006, at 6:37 AM, email@hidden wrote:
Using a plain C array, or a thin OO wrapper around one, can be a
useful optimization for large numbers of objects. But "large" requires
at least a couple more zeroes than you have here.

Thank you for the feedback from everyone. It gave me several ideas. I admit i have never used Vector or the STL, but may look into it for some future bits of code. For now, I will work with NSMutableArray. I do think my NSMutableData approach is more memory effiecent, but realizing the amount of memory I may save in my worst case would be half an icon, definitely puts it in perspective.


Gone are the days when we worry about saving every Nibble of 6502 code in your 48K memory space. As long as code does not slowly leak memory, how much it is uses seems unimportant.

Steve Sheets
Midnight Mage Software

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Object for variable array of fixed structures (From: Steve Sheets <email@hidden>)
 >Re: Object for variable array of fixed structures (From: Steve Sheets <email@hidden>)

  • Prev by Date: Re: Launch another app without losing focus
  • Next by Date: Re: Launch another app without losing focus
  • Previous by thread: Re: Object for variable array of fixed structures
  • Next by thread: Creating Shared Named Objects
  • Index(es):
    • Date
    • Thread