Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » TreeViewer/TableViewer selectAll very slow(How do I improve selectAll performance)
TreeViewer/TableViewer selectAll very slow [message #510193] Tue, 26 January 2010 11:22 Go to next message
John Ye is currently offline John Ye
Messages: 19
Registered: July 2009
Junior Member

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 Go to previous message
Del Myers is currently offline Del Myers
Messages: 82
Registered: July 2009
Member
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
Previous Topic:Deployable features export problem
Next Topic:ContainerSelectionDialog - can I show hidden folders?
Goto Forum:
  


Current Time: Wed Jul 23 04:11:23 EDT 2014

Powered by FUDForum. Page generated in 0.14607 seconds