I have a complex dataGroup with about 20 items that takes a long time to put on the screen ( up to 10 seconds ). I've tried virtualization, which speeds up the initial display, but in turn really slows down the scrolling. ( with virtualization, scrolling down the first time is a real pain, after having scrolled up and down once, all goes smooth)
Now, what are some ways to speed up the datagrid? Or at least make for a smoother user expierence? I was thinking about adding a timer and only adding 1 item to the dataprovider every 100 ms or so. But before I do something hackish like that, I would love to hear some ideas on speeding up my little datagrid issue.
Also, would using a List instead of a DataGroup speed things up?
Any advise would be much appreciated.
DataGroup and DataGrid are different components. Which one are you having
In general, though, both use itemrenderers and if your renderers are not
optimized you will have performance problems.
The performance profiler can help you.
I like that tip on optimizing the renderers. I'll go and devide it into borderContainers and us a timer + createDeferredContent to make thing smooth.
Ryan Frishberg gave a good presentation at MAX this year about performance in Flex:
Take a look at around the 30 minute mark for some tips on speeding up your item renderers.