Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 342127

Summary: gtk_main_do_event is slow with Table.setLinesVisible(true)
Product: [Eclipse Project] Platform Reporter: Missing name <markus.knetschke>
Component: SWTAssignee: Platform-SWT-Inbox <platform-swt-inbox>
Status: CLOSED WORKSFORME QA Contact:
Severity: major    
Priority: P3 CC: ericwill, gautier.desaintmartinlacaze, markus.knetschke, xixiyan
Version: 3.7Keywords: triaged
Target Milestone: ---   
Hardware: PC   
OS: Linux-GTK   
Whiteboard:
Bug Depends on:    
Bug Blocks: 519166    
Attachments:
Description Flags
Contains the Profile log, a screen showing the relevant infos and the modified snippet none

Description Missing name CLA 2011-04-07 05:44:11 EDT
Created attachment 192714 [details]
Contains the Profile log, a screen showing the relevant infos and the modified snippet

While testing my program the navigation with a SWT.VIRTUAL table scrollbar is very slow. The Table holds only 45000 rows and 15 columns.

I've modified the Snippet144 to reproduce the problem. An increase of "COUNT" or "COL_COUNT" increases the slowdown.
If you comment the "table.setLinesVisible(true);" (Line 45) out the lag goes away.
A profiler shows gtk_main_do_event as the cause. (VisualVM 1.3.2 Log and Screen attached).
On windows the program runs well even with very high values.

Hopefully someone could look at this.
Comment 1 Xi Yan CLA 2018-12-04 09:38:46 EST
I can reproduce this on Fedora 29, GTK3.24.1, using SWT master as of today.
Comment 2 Eric Williams CLA 2019-02-20 13:58:58 EST
I can't reproduce this issue, the time taken is the same (~530ms) when the lines are visible and not.

SWT from master as of today
Fedora 29
GTK3.24