Skip to main content



      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
Eclipse UserFriend
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
Eclipse UserFriend
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
Eclipse UserFriend
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
Eclipse UserFriend
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
Eclipse UserFriend
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
Eclipse UserFriend
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:use org.eclipse.rap.rwt.supplemental.fileupload, How to modify the upload directory?
Next Topic:RWT Standalone WAR to WebLogic contextDirectory problem
Goto Forum:
  


Current Time: Wed Jul 23 12:44:09 EDT 2025

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

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

Back to the top