You may want to mess with the new profiler to figure out where the
bottleneck is but my initial guess at the bottleneck is the layout of
the components. If you've got a whole bunch of relative sizing of
positioning of the children that can chew up a lot of time. This is
where you set the width and height properties of child components to a
percentage of the parent, also this applies to setting the top, left,
right and bottom properties. You may want to do some of this layout
yourself.

Ryan

--- In [email protected], "mavdzee" <[EMAIL PROTECTED]> wrote:
>
> Hi,
> 
> I have a performance issue with a screen that is composed of many
> (lets say up to 40) identical childs. The number of childs is decided
> at run-time, something like this:
> 
> var parentBox:VBox = new VBox();
> for each (var data:XML in datas)
> {
>   var chart:MyComp = new MyComp()
>   parentBox.addChild(chart);
>   chart.init(data);
> }
> 
> Here MyComp is a complex component with many buttons, vboxes and a
> chart (and other stuff). The rendering of parentBox takes very long
> (alomst 7 seconds on a QuadCore machine). Because all the
> chart-components are exactly the same, except for the chart-data that
> is passed through the init(), is there a way to clone components to
> speed up performance? Or something else?
> 
> Cheers,
> Andrej
>


Reply via email to