Klaas Pieter
unread,Nov 24, 2010, 8:24:25 AM11/24/10Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Cappuccino & Objective-J Development List
I'm going to push a commit in a second that will disable value caching
in the CPControllerSelectionProxy.
I'm going to disable it because it doesn't handle keypaths. For
example if the key department changes, the cache for
department.whatever should also be cleared.
The caching saves some time because in stead of having to perform
valueForKeyPath: again, it can just get the key from the cache. The
time it saves depends on the length and the number of key paths that
are being observed.
In most cases keys will be bound correctly and there will not be a
significant amount of keys bound. Because of this I think refactoring
the caching to work with key paths will be a premature optimization.
For now the caching will be disabled, if anyone is having performance
problems because of it please let me know and I'll look into it again.
- Klaas Pieter