Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » ViewerSorter performance
ViewerSorter performance [message #628799] Fri, 24 September 2010 03:55 Go to next message
Eclipse UserFriend
Hi,

my tree viewer shows a relatively plain model (2000 elements in the same
node). When I use a ViewerSorter, the Display thread is blocked for
about 20s (!) before showing the sorted tree. Profiling does not reveal
anything special, most of the time is spent in some SWT internal stuff.

When I sort the elements in the IContentProvider instead, sorting time
drops below 3s. Still a lot but I can live with that.

Am I missing something?

Regards
Jan
--
Need professional support for Eclipse Modeling?
Go visit: http://xtext.itemis.com
Re: ViewerSorter performance [message #628800 is a reply to message #628799] Fri, 24 September 2010 04:05 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

Are you setting the sorter after the setInput()? You could try turning
of redraw before setting the new sorter this might help.

Tom

Am 24.09.10 09:55, schrieb Jan Kšoehnlein:
> Hi,
>
> my tree viewer shows a relatively plain model (2000 elements in the same
> node). When I use a ViewerSorter, the Display thread is blocked for
> about 20s (!) before showing the sorted tree. Profiling does not reveal
> anything special, most of the time is spent in some SWT internal stuff.
>
> When I sort the elements in the IContentProvider instead, sorting time
> drops below 3s. Still a lot but I can live with that.
>
> Am I missing something?
>
> Regards
> Jan
Re: ViewerSorter performance [message #629418 is a reply to message #628800] Tue, 28 September 2010 04:27 Go to previous message
Eclipse UserFriend
As sorting is usually triggered on/off, I set the viewer after setting
the input. In the meantime, I moved sorting into the content provider
which fits my needs.

Thanks for your help
Jan


Am 24.09.10 10:05, schrieb Tom Schindl:
> Hi,
>
> Are you setting the sorter after the setInput()? You could try turning
> of redraw before setting the new sorter this might help.
>
> Tom
>
> Am 24.09.10 09:55, schrieb Jan Kšoehnlein:
>> Hi,
>>
>> my tree viewer shows a relatively plain model (2000 elements in the same
>> node). When I use a ViewerSorter, the Display thread is blocked for
>> about 20s (!) before showing the sorted tree. Profiling does not reveal
>> anything special, most of the time is spent in some SWT internal stuff.
>>
>> When I sort the elements in the IContentProvider instead, sorting time
>> drops below 3s. Still a lot but I can live with that.
>>
>> Am I missing something?
>>
>> Regards
>> Jan
>


--
Need professional support for Eclipse Modeling?
Go visit: http://xtext.itemis.com
Previous Topic:Serializing references to resources (files) in workspace
Next Topic:Standalone view placeholder - improper layout?
Goto Forum:
  


Current Time: Sun Aug 31 01:03:11 EDT 2025

Powered by FUDForum. Page generated in 0.11561 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top