Re: Object for variable array of fixed structures
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