Best approach?

Post here your questions about SFS2X. Here we discuss all server-side matters. For client API questions see the dedicated forums.

Moderators: Lapo, Bax

3slices
Posts: 115
Joined: 17 Aug 2011, 04:42

Best approach?

Postby 3slices » 11 Apr 2012, 10:50

I am looking for the best approach performance wise for the following situation:

My userlist is a datagrid with an ArrayCollection as dataprovider. The ArrayCollection holds all user items.
As I need to implement some custom sorting, on every user enter and exit there needs to be performed some extra sorting and filtering, before the ArrayCollection gets rebuild and reflect the new state.

On heavy usage with lots of user enters and exits this is getting quity heavy as every enter end exit performs a rebuild. From a performance view it would be recommended to pool the changes and perform a rebuild only once in a while. Also I see the chance that the nature of the event handling causes inaccurate data with multiple rebuilds manipulating the ArrayCollection at the same time.

So what would be the best approach to ensure accurate data and best performance?

Return to “SFS2X Questions”

Who is online

Users browsing this forum: No registered users and 82 guests