Skip to main content


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 16:22 Go to next message
John Ye is currently offline John YeFriend
Messages: 20
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 18:19 Go to previous message
Del Myers is currently offline Del MyersFriend
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: Thu Apr 25 23:50:58 GMT 2024

Powered by FUDForum. Page generated in 0.03412 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top