Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » JFace TableViewer/Table setitemcount() slow(decreasing itemcount from large number terrible slow)
JFace TableViewer/Table setitemcount() slow [message #989198] Wed, 05 December 2012 03:25 Go to next message
Mitch B. is currently offline Mitch B.
Messages: 27
Registered: September 2011
Junior Member
Hi,
(I posted this topic already in the JFace-Section without any answers yet)
I use a virtual tableviewer in Eclipse RAP 1.5 to hold and display large datasets. After doing filter actions I set the itemcount to the new number of data rows which could be displayed. Now I noticed that when I decrease the number in setitemcount() from a large number above 80k to a much smaller number like 700 or so, the disposing of the items(even they were not visable) takes so much time that the user could think the application is frozen. Is this an RAP issue only, my fault or a common problem?

As a workaround I decrease the itemcount in small steps, which improves the performance a lot, but this should not the way to handle this scenario.

regards
Re: JFace TableViewer/Table setitemcount() slow [message #989447 is a reply to message #989198] Thu, 06 December 2012 04:30 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan Furnadjiev
Messages: 1773
Registered: July 2009
Senior Member
Hi Mitch,
this is an interesting issue. Could you try to reproduce it with a plain
virtual Table (without TableViewer). This will eliminate the JFace code
and will allow as to track the issue down.
Best,
Ivan

On 12/5/2012 10:25 AM, Mitch B. wrote:
> Hi,
> (I posted this topic already in the JFace-Section without any answers
> yet)
> I use a virtual tableviewer in Eclipse RAP 1.5 to hold and display
> large datasets. After doing filter actions I set the itemcount to the
> new number of data rows which could be displayed. Now I noticed that
> when I decrease the number in setitemcount() from a large number above
> 80k to a much smaller number like 700 or so, the disposing of the
> items(even they were not visable) takes so much time that the user
> could think the application is frozen. Is this an RAP issue only, my
> fault or a common problem?
>
> As a workaround I decrease the itemcount in small steps, which
> improves the performance a lot, but this should not the way to handle
> this scenario.
>
> regards

--
Ivan Furnadjiev

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: JFace TableViewer/Table setitemcount() slow [message #989541 is a reply to message #989447] Thu, 06 December 2012 11:45 Go to previous messageGo to next message
Mitch B. is currently offline Mitch B.
Messages: 27
Registered: September 2011
Junior Member
Hi Ivan,

just had look at the TableTab from the Controls-Demo, its a plain virtual swt table if enabled - you can reproduce it easily there.

Regards
Re: JFace TableViewer/Table setitemcount() slow [message #989719 is a reply to message #989541] Fri, 07 December 2012 07:26 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan Furnadjiev
Messages: 1773
Registered: July 2009
Senior Member
Hi Mitch,
you are absolutely right - there is a performance problem. I did a profiling with YourKit and it shows that most of the time is spent in Table#getHeaderHeight(). We should buffer header height and not query the themeing subsystem all the time. Please open a bugzilla about this issue.
Best,
Ivan
Re: JFace TableViewer/Table setitemcount() slow [message #989971 is a reply to message #989719] Mon, 10 December 2012 05:17 Go to previous messageGo to next message
Mitch B. is currently offline Mitch B.
Messages: 27
Registered: September 2011
Junior Member
https://bugs.eclipse.org/bugs/show_bug.cgi?id=396172
Re: JFace TableViewer/Table setitemcount() slow [message #989992 is a reply to message #989971] Mon, 10 December 2012 06:11 Go to previous message
Ivan Furnadjiev is currently offline Ivan Furnadjiev
Messages: 1773
Registered: July 2009
Senior Member
Thanks

On 12/10/2012 12:17 PM, Mitch B. wrote:
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=396172

--
Ivan Furnadjiev

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Previous Topic:RAP 2.0 tool issue
Next Topic:ControlDecoration format description
Goto Forum:
  


Current Time: Wed Jul 23 14:04:28 EDT 2014

Powered by FUDForum. Page generated in 0.02325 seconds