On 12/8/16, 12:17 PM, "João Fernandes"
<joaopedromartinsfernan...@gmail.com> wrote:

>Alex, didn't tell me once about the order of the actions (setStyle,
>addChild) would also impact? Cant' remember what was the order but styling
>and adding it as a child would also force additional invalidations.

Hi João,

Yes, this is true.  IMO, the call to setStyle should happen immediately
after addChild.  Calling it before addChild sets up a temporary object to
hold the styles.  Calling it after validation causes additional
invalidations.

The profiler will show any impact like that.

-Alex

Reply via email to