Open cxbrooks opened 15 years ago
LazyTypedCompositeActors defer evaluation of their contents until absolutely necessary. This change greatly improves start up time, though the preinitialize() phase ends up consuming what ever improvement we see in start up time.
The current way to save a model using LazyTypedCompositeActor is to edit ptolemy.moml.filter.BackwardCompatibility, add the Lazy filter in, recompile, open the model and save the results.
There is the ConvertToLazy class, but it does not work:
In any case, we need a way to control when LazyTypedCompositeActors are used. I propose that we create an attribute that can be dragged into a TypedComposite that signifies that upon save, any TypeCompositeActor sub-components are converted to LazyTypedCompositeActors. This would give model builders fine grained control over the conversion.
Note: the issue was created automatically with bugzilla2github tool
Original bug ID: BZ#220 From: @cxbrooks Reported version: 7.1.devel CC: pt-dev@chess.eecs.berkeley.edu