Post a screenshot of the profiler output. Don't attach it to this thread as attachments get filtered out. Post the screenshot somewhere else and reply with a link to it. Also post a screenshot of the UI if you can. Feel free to obfuscate text and graphics.
-Alex On 8/19/14 4:42 PM, "codekarma" <[email protected]> wrote: >Hi All, > >I have a question about severe performance degradation ~15 seconds when >adding a component to a spark TitleWindow dynamically. Any pointers/help >on >how to sort this would be a big help. > >Say, UIPanel is a custom component with several children. The app creates >a >spark TitleWindow using the PopupManager. The TitleWindow contains a >HGroup >child that contains an Accordion on the left hand side with different >forms >and a ViewStack on the right hand side with various components and one of >these is the UIPanel. When clicking the Accordion, the Viewstack shows >different components and lets the user configure the component using one >of >the forms. > >When I click the Accordion's tab corresponding to the UIPanel it takes an >awful long time. It's very slow and also sometimes I can see some >unrelated >stuff on the stage getting updated slowly. > >Adding the same UIPanel to another container dynamically via a Button is >fast. Furthermore its only slow the first time the UIPanel is created. If >the UIPanel was created earlier before the TitleWindow was even created it >adds it fast. Even if the another instance of the TitleWindow is created >at >a later stage it add the component very fast it's just happening the very >first instantiation. > >This component has a static method called when the first instance of >object >is created as mentioned in >http://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c0bf687e >7-7ff6.html#WS2db454920e96a9e51e63e3d11c0bf69084-79d9. >However the profiler doesn't show this taking too much time (< 40 ms).The >profiler shows most of the time being taken in enterFrameEvent and some in >pre-render & render. >Subsequent runs take a much smaller time for these. > >The component does use setStyle on of its children but that child doesn't >have any further children and I don't see it using anything in the >profiler. > >Again, if anyone can give me some pointers/inputs would be a really big >help! > > > >-- >View this message in context: >http://apache-flex-users.2333346.n4.nabble.com/TitleWindow-severe-performa >nce-problem-15-sec-to-update-tp7677.html >Sent from the Apache Flex Users mailing list archive at Nabble.com.
