Re: BOOL array
Re: BOOL array
- Subject: Re: BOOL array
- From: Todd Blanchard <email@hidden>
- Date: Tue, 09 Sep 2008 17:32:52 -0700
You might consider using a NSMutableIndexSet since your problem
basically boils down to storing membership in a set for each of a
ranch of numbers. NSIndexSet is what things like NSTable use to track
selected rows. I would think it would be hard to beat that without
going to a raw C bitmap implementation. It will be MUCH better than
what you have now.
-Todd Blanchard
On Sep 9, 2008, at 3:24 AM, Alex Reynolds wrote:
I am currently putting 320 to 480 character long NSString *
instances into an NSMutableArray. The characters are 0 or 1.
I guess I could use an int array, but I'm looking to speed up my app
and reduce storage. Is it possible to create a BOOL array that can
be put into an NSMutableArray?
Thanks,
Alex
_______________________________________________
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
_______________________________________________
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: | |
| >BOOL array (From: Alex Reynolds <email@hidden>) |