I know this code doesn't work, but how could I actually initialize this correctly?:
NSUInteger highestModelID = 34605;
NSUInteger highestColorID = 328;
NSUInteger** modelColors[highestModelID][highestColorID] = malloc(highestModelID * highestColorID * sizeof(NSUInteger));
So having 2 dynamic depths. I have this massive buffer in a multi-dimensional NSMutableDictionary
which hogs memory. I would really love to just do this primitive.
Guess it would be even more amazing to make a class out of this to be able to use it on more places where Objective-C dictionaries and even NSMutableArray
are really just overkill. Over time I'm really becoming more and more annoyed by using NSNumber
for something that would be super light what I'm used to in golang
, suddenly making it a major factor in slowing my app down..