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

Bug 351699

Summary: Nebula Grid loads slowly when we create more columns (more than 200) in Ubuntu Linux
Product: z_Archived Reporter: manoj dabholkar <manoj.dabs>
Component: NebulaAssignee: Mirko Paturzo <caosmpz>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: caosmpz, cgross, wim.jongman
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description manoj dabholkar CLA 2011-07-11 08:03:16 EDT
Build Identifier: Eclipse-SDK-3.4-win32

Hi 

I am creating more than 200 columns in nebula grid using for loop. It is
working fine in windows platform, but when the same source is run on ubuntu
linux it takes lot of time to load. In Ubuntu it takes more than 10 secs and in
windows it takes only 2-3 seconds. 

The code is as follows :

for (int i = 0; i < 200 ; i++)
{
GridColumn column = new GridColumn(bottomGridDayView,SWT.NONE);
if(i==0)
{
column.setWidth(20);
}
else if(i==1)
{
column.setWidth(30);
}
else if(i == delimitCol)
{
column.setWidth(5);
}
else
{
column.setWidth(3);
}
}

We are creating around 200 columns on the grid (bottomGridDayView). The grid is formed by the code below.


bottomGridDayView = new Grid(canvas,SWT.NONE | SWT.V_SCROLL | SWT.H_SCROLL);

bottomGridDayView.setHeaderVisible(false);
bottomGridDayView.setRowHeaderVisible(false);
bottomGridDayView.setCellSelectionEnabled(true);


On Windows XP :- Above code loads the grid in 2-3 seconds
On Suse Linux :- Above code loads the grid in 2-3 seconds
On Ubuntu Linux :- Above code loads the grid in more than 7 seconds

We are facing this problem only on Ubuntu linux operating system.

Please help us to solve the issue.


Regards,
Manoj

Reproducible: Always
Comment 1 Mirko Paturzo CLA 2015-04-24 05:54:10 EDT
Hi all,
I have tested new paradigm on Ubuntu 13.04.
I used the snippet called GridViewerSnippetWithAdaptedDataVisualizer. Time for paint the grid was about 7 secs for 1000x1000 and 3 seconds for 200x1000 (colsxrows).wim
Comment 2 Wim Jongman CLA 2015-04-24 08:40:17 EDT
Nice! Seems like a massive improvement.
Comment 3 Mirko Paturzo CLA 2015-04-24 08:44:14 EDT
With new fuctionalities, the problem does not occur