Skip to main content


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 08:25 Go to next message
Mitch B. is currently offline Mitch B.Friend
Messages: 29
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 09:30 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2426
Registered: July 2009
Location: Sofia, Bulgaria
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 16:45 Go to previous messageGo to next message
Mitch B. is currently offline Mitch B.Friend
Messages: 29
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 12:26 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2426
Registered: July 2009
Location: Sofia, Bulgaria
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 10:17 Go to previous messageGo to next message
Mitch B. is currently offline Mitch B.Friend
Messages: 29
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 11:11 Go to previous message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2426
Registered: July 2009
Location: Sofia, Bulgaria
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: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: Fri Mar 29 07:05:43 GMT 2024

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

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

Back to the top