So I ran the performance profile as you suggested and was a little surprised at what I saw and how to interpret it. As an explanation of the program, I basically have set up a big filter system for a large set of data. I have a spark datagrid that is used to display 40k records, and then I have dropdownlists where you can select a filter value such as price. There are 11 filters and they are arranged in a filterfunctions array. Whenever there is a change event on a dropdownlist, a function is called that simply refreshes the arraycollection, thus calling the filterfunctions that have been assigned. When I ran the profiler, I did not select any values for any of the filters, I simply cleared the profiler, and then clicked on a header in the datagrid to sort a column. Two things from the profiler stand out to me that I don't understand. There is a mouseEvent that is called one time but has a cumulative time of 5272 ms(95.72%) of the entire process. I can only assume this is the click event on the header. But what else I see that is surprising to me is that each data filter was called 74642 times, and 74642 calls were made to get data out of the dropdownlists. Why would that happen? During a sort, does the arraycollection call a refresh regularly? If so, is there a way to avoid this? Any thoughts or direction would be greatly appreciated. I have attached an image of the profile to this post.
<http://apache-flex-users.2333346.n4.nabble.com/file/n13031/profile.jpg> -- View this message in context: http://apache-flex-users.2333346.n4.nabble.com/Why-are-Spark-Datagrid-headers-sorting-my-data-so-slowly-in-Air-tp13026p13031.html Sent from the Apache Flex Users mailing list archive at Nabble.com.