Re: fast search of NSPointerArray
Re: fast search of NSPointerArray
- Subject: Re: fast search of NSPointerArray
- From: Graham Cox <email@hidden>
- Date: Sun, 23 Jun 2013 13:01:44 +1000
On 23/06/2013, at 12:56 PM, James Maxwell <email@hidden> wrote:
> I've thought creating my sparse arrays using NSHashTable (keyed by NSIntegers) instead of NSPointerArray. Does this seem like a reasonable way to speed things up?
Don't guess: measure.
If you can show that your iterators are the culprit, then using a hash instead might be a solution, but you won't know until you can pinpoint what the actual problem is.
--Graham
_______________________________________________
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