Declaring 3 properties will use less memory and be more performant than using an NSMutableDictionary
.
Using properties also makes your code easier to read and allows your compiler to help you with type-safety.
Another consideration, is that you can't store nil
in a collection.
EDIT:
As far as memory is concerned, the only difference between the 2 options that you mentioned is that the NSDictionary
requires its own memory in the heap. The objects themselves will still require the same memory in the heap either way.