• 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: fast search of NSPointerArray
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >fast search of NSPointerArray (From: James Maxwell <email@hidden>)

  • Prev by Date: Re: Core Data Reverse Engineering KickStarter Project
  • Next by Date: Re: fast search of NSPointerArray
  • Previous by thread: fast search of NSPointerArray
  • Next by thread: Re: fast search of NSPointerArray
  • Index(es):
    • Date
    • Thread