« Return to Thread: sorting freezes UI

sorting freezes UI

by lexthang :: Rate this Message:

Reply to Author | View in Thread

Sorry if this sounds like such a fundamental question .. I search the forum but didn't find anything similar (there's only one post about frozen UI for a few seconds when creating an EventList of a few hundred items list)

So we have a table of hundreds of thousand of rows .. We notice that when we click on some column to sort, the UI becomes unresponsive for minutes. It appears the cause is due to the sorting is being done in the main event thread itself. Is there away we can move the sorting to another thread safely? I understand something like that might need to be intricate, since the click-handling is totally inside glazedlist, which means some types of callback might be necessary. Still, it would be a really really great thing if we can have something like that .. or some pointers on what might be possible.

Thank you!

 « Return to Thread: sorting freezes UI