• 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: NSMutableDictionary Look Up
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSMutableDictionary Look Up


  • Subject: Re: NSMutableDictionary Look Up
  • From: Britt Durbrow <email@hidden>
  • Date: Sun, 24 May 2015 14:33:53 -0700

I don’t think that it would have a significant effect; and I also don’t think that any changes would be worth the trouble…

I did a little more benchmarking on the dictionary primitives (NSMutableDictionary and NSString’s -hash implementation); and got pretty much the results I expected; although the timings were a bit noisy it’s showing typical performance of ~ O(1)… what I’d expect for a hashtable.

I put my results on pastebin here:
http://pastebin.com/9jSTqBNQ

And the source code for the test here:
http://pastebin.com/TXyHjTTu
_______________________________________________

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: 
 >NSMutableDictionary Look Up (From: Dave <email@hidden>)
 >Re: NSMutableDictionary Look Up (From: Britt Durbrow <email@hidden>)
 >Re: NSMutableDictionary Look Up (From: Dave <email@hidden>)

  • Prev by Date: Re: Swift program termination...
  • Next by Date: Constraining window width to scrolling contents with autolayout
  • Previous by thread: Re: NSMutableDictionary Look Up
  • Next by thread: Re: iOS App Store Version vs Info.plist version?
  • Index(es):
    • Date
    • Thread