iOS engineer who likes clean, simple designs and sans-serif.


Week 1 Day 4 – NSMutableDictionary > NSMutableArray

Today I learned that I should use NSMutableDictionary instead of NSMutableArray for fast indexing/searching. Never thought about it that way before — I always used to only consider it when thinking about an NSDictionary. It saves you from doing some crazy iterations through arrays. And it’s faster. It takes the same amount of time to find the value no matter how big the dictionary is. Pretty awesome.

Leave a Comment