[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Worth it for an object to caching its own IMPs?
I wrote:
> I've also considered creating a second representation of the tree
> which is a simple flat NSDictionary, keyed by the actual keypath. So
> instead of this:
>
> [myStructure valueForKeyPath:@"element1.element2.element3"];
>
> I do this:
>
> [myStructure objectForKey:@"element1.element2.element3"];
>
> Not sure offhand how much time this would save, but 30% less
> dispatches has to be worth something.
Errr.... 60%+.
- Scott
--
Tree House Ideas
http://treehouseideas.com/