Only following this thread halfway, but in thinking about it, grouping would be expensive because the adg would have to look at every row. Now, hopefully, that would be in memory and not related to the rendering bottleneck, but maybe not.
Perhaps you could build a hierarchical data set in advance, to take the load (or some) off ADG? Does ADG's sort/group algorithm perform better if the data is already in the right order? Many such algorithims do. And if your data was pre-ordered, you could even use page demand loading. Seems you would want to experiment some, and find out whare the bottleneck in your case really is. Just thinking out loud... Tracy ________________________________ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Adrian Williams Sent: Thursday, September 04, 2008 5:54 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: Horrible performance problems...Need some ideas on improving Yeah...but again, it's not much of a choice...the rows are grouped in "like" matches. For example, if 5 people have similar results, then the user groups them together in a common group and will want to be able to see these groups as a subset of the whole dataset. Adrian whatabrain wrote: One of your problems might be that you're using a grouping grid. I tested an ADG with 5,000 rows, and the grouping version took a huge amount of time to render, while the non-grouping version took just four seconds. --- In flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> , Adrian Williams <[EMAIL PROTECTED]> wrote: > > All, > > I am seeing some incredible lag while using a couple of simple > panels and a complex ADG. While I love the flexibility and power of > Flex/AS and the ADG, I really need to overcome these performance > problems or the project will sink. > > My ADG has approx. 100 columns with approx. 200 rows, in a grouping > collection that contains approx 30 groups. > > I suspect the lag I am seeing has to do with the redrawing of the > rows. Whenever I scroll or collapse/expand the nodes, it takes between > 1/2 to 1 second for the action to complete. And this isn't even a very > large dataset...we have some that have a few thousand rows. I haven't > used any item rendering (yet) that would slow the speed down, though I > have two columns that have style functions attached. All in all, this is > about as close to display the raw data as I can get. > > I have spent some time with the profiler and performance monitor and > it appears the the code is sound and without memory leaks. I have also > gone thru to refactor poorly designed code and remove unnecessary nestings. > > So my initial questions with this admittedly somewhat vague problem are: > > 1.) Is there a way to turn off the animations and would doing so > help with the speed? > 2.) Has anyone else faced this same dilemma and how did you > overcome the problems? > > Thanks, > Adrian >