| SWT Table - Performance [message #890318]
||Thu, 21 June 2012 18:27
| Heiß Michael
Registered: June 2012
I am currently investigating a serious performance problem that we are having with an SWT table. Here is a short overview what we are doing:
*) Table is created with SWT.Virtual flag.
*) The SWT.SetData listener prepares and stores the data in the TableItem so that the renderes can access the cached data.
*) The SWT.Erase listener draws the custom background
*) The SWT.Paint listener draws the custom content using a shared TextLayout
With a table with more than 100 columns we are seeing serious performance problems when scrolling horizontally or when resizing a single table column. Every time i am scrolling horizontally the whole table is re-rendered which is, when having a large amount of columns, very expensive. I would expect that only the visible columns (about 10 to 15) are re-rendered and the rest is ignored as they are out of the visible area.
Getting paint event for only the visible number of rows but for ALL column.... Is this the desired behavior? Or is there any chance to detect which columns are visible and then exclude the others from the rendering?
(Eclipse 3.7.1 / Windows 7x64)
[Updated on: Sat, 23 June 2012 12:13]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.03795 seconds