Re: RR loop confusion....
Re: RR loop confusion....
- Subject: Re: RR loop confusion....
- From: Anjo Krank <email@hidden>
- Date: Tue, 26 Jul 2005 09:10:32 +0200
I may be missing something, but from my experience, the expensive
thing is not the synching of the bindings by itself, but rather that
the bindings may come from very costly data sources. Like an array
coming from a fetch or something like it.
And when you consider this, you should rather do sth like:
private Foo _foo;
public Foo foo() {
if(_foo == null && hasBinding("foo")) _foo = valueForBinding
("foo");
return _foo;
}
because this prevents the value from getting pulled more than once.
Don't forget set _foo = nil in reset() if your component is stateless.
Cheers, Anjo
Am 26.07.2005 um 08:48 schrieb Helge Städtler:
I made nearly all of my components in my applications non-
synchronizing,
because this may become some real overhead for performance and at
the same
time its more transparent to me what actually happens with the values.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden