Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 342127 - gtk_main_do_event is slow with Table.setLinesVisible(true)
Summary: gtk_main_do_event is slow with Table.setLinesVisible(true)
Status: CLOSED WORKSFORME
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 3.7   Edit
Hardware: PC Linux-GTK
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: Platform-SWT-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: triaged
Depends on:
Blocks: 519166
  Show dependency tree
 
Reported: 2011-04-07 05:44 EDT by Missing name CLA
Modified: 2019-02-20 13:58 EST (History)
4 users (show)

See Also:


Attachments
Contains the Profile log, a screen showing the relevant infos and the modified snippet (130.13 KB, application/zip)
2011-04-07 05:44 EDT, Missing name CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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