Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » ViewerSorter performance
ViewerSorter performance [message #628799] Fri, 24 September 2010 07:55 Go to next message
Jan Koehnlein is currently offline Jan KoehnleinFriend
Messages: 760
Registered: July 2009
Location: Hamburg
Senior Member
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


---
Get professional support from the Xtext committers at www.typefox.io
Re: ViewerSorter performance [message #628800 is a reply to message #628799] Fri, 24 September 2010 08:05 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
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 08:27 Go to previous message
Jan Koehnlein is currently offline Jan KoehnleinFriend
Messages: 760
Registered: July 2009
Location: Hamburg
Senior Member
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


---
Get professional support from the Xtext committers at www.typefox.io
Previous Topic:Serializing references to resources (files) in workspace
Next Topic:Standalone view placeholder - improper layout?
Goto Forum:
  


Current Time: Wed Dec 04 06:35:20 GMT 2024

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

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

Back to the top