[PEAK] multiple values setting
Phillip J. Eby
pje at telecommunity.com
Tue Oct 23 08:43:15 EDT 2007
At 11:22 AM 10/23/2007 +0300, Peter Damoc wrote:
>Hello,
>
>I have a performance issue relating to multiple values setting.
>Basically there are moments when I need to change a lot of values,
>like at initialization of the object.
>The main problem is that the rules are recomputed at each change and
>I want them to be recomputed only once (some of them are really time
>consuming).
>
>Is there a way to create a "batch" of changes? Like a decorator for
>a modifying function that will cause the rules to be recomputed at
>the end of the function NOT at every change inside the function.
If you're talking about trellis.Component objects, use
@trellis.modifier to decorate the function that sets the values.
More information about the PEAK
mailing list