> If you're going to do that, why bother with an NSMapTable at all? Just store 
> your pointers in a C array.

The string pointers can be different, but they can contain identical
string keys, resulting in identical values. I wanted to find values by
in a more efficient way than dumb array iteration, say, like binary
tree search which is probably used in NSDictionary or NSMapTable.

> It's not useful to pursue this line of thinking without benchmarks.

Now I guess you're right. I just didn't know it was going to be that
complicated. I thought it was pure benefit and cheap. I am reverting
to using NSDictionary.
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to