[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
CF Performance vs. Foundation (Re: Worth it for an object to cache its own IMPs?)
On Mar 1, 2004, at 4:23 PM, Glen Low wrote:
> The other thing to think about is whether you can flatten your
> hierarchy somewhat. Instead of key1 -> (key2 -> object), try something
> like (key1, key2) -> object. The multiple objects for a single key
> collections will help e.g. bags.
Yeah, I mentioned something like this in another post -- essentially
using the keypath as a key in a flat dictionary.
Granted, this is not *the fastest* way by any means, just keeping
balanace in mind.
> [preaching mode on]
> You said you're at the optimization stage and would prefer not to
> change your data structures.
I only meant that in the context of why I was willing to try IMP
caching. Because I didn't have to change data structures, I could just
try it out quickly.
I have no problem changing the internal representation in a way that
leads to real speed increases while still keeping the complexity
manageable.
Thanks,
- Scott
--
Tree House Ideas
http://treehouseideas.com/