TreeViewer/TableViewer selectAll very slow [message #510193] |
Tue, 26 January 2010 11:22  |
Eclipse User |
|
|
|
I am using TableViewer (TreeViewer) with SWT.VIRTUAL. The underlying table/tree can have 1M elements. With SWT.VIRTUAL, the performance is adequate, but when I select all with Ctrl-A, it is painfully slow.
It could be a performance issue with underlying table.selectAll(). I would like to know if anything I can do to speed it up. It seems to be unnecessary to create all the table items during selectAll. It would be better to do a virtual select all and only highlight visible table items.
Would it help to use a ILazyContentProvider/ILazyTreeContentProvider?
Thanks,
John
|
|
|
Re: TreeViewer/TableViewer selectAll very slow [message #510220 is a reply to message #510193] |
Tue, 26 January 2010 13:19  |
Eclipse User |
|
|
|
I'm not an expert on this, but my guess would be that when you press Ctrl-A to
select all, this results in all of the tree or table elements being allocated in
the operating system. With a million or more elements being created, such an
operation can take a very long time. Honestly, I don't know if there is a
solution. Someone else would know better.
Del
John Ye wrote:
>
> I am using TableViewer (TreeViewer) with SWT.VIRTUAL. The underlying
> table/tree can have 1M elements. With SWT.VIRTUAL, the performance is
> adequate, but when I select all with Ctrl-A, it is painfully slow.
>
> It could be a performance issue with underlying table.selectAll(). I
> would like to know if anything I can do to speed it up. It seems to be
> unnecessary to create all the table items during selectAll. It would be
> better to do a virtual select all and only highlight visible table items.
>
> Would it help to use a ILazyContentProvider/ILazyTreeContentProvider?
> Thanks,
> John
|
|
|
Powered by
FUDForum. Page generated in 0.07779 seconds