Re: NSMutableDictionary Look Up
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