Effectively look for NSString in a set

Consider the many thousands of NSStringobjects in memory.

What is the most effective way to search for a specific NSStringin a set? Can I use it NSDictionary? Or is it guaranteed that the search NSSetis O (1) (could not find documentation that says so)?

And is the same strategy applicable to objects NSData?

+5
source share
2 answers

This page shows the following note about sets:

. -, , , . - ( -) . , NSString, Foundation, -.

, NSString , .

+4

NSSet - , -. , - .

0

All Articles