Reputation: 138
I need to understand how NSDictionary
algorithm works in iOS?
I am assuming it is using the hashing algorithm internally just like in Java HashMap
uses concept of bucket
and hashcode
.
Are mechanism of NSDictionary is the same as that of HashMap
in Java?
Upvotes: 1
Views: 716
Reputation: 112857
NSDictionary
uses CFDictionary
which is open source by Apple here.
Also see Let's Build NSMutableDictionary by Mike Ash.
Upvotes: 5