Did anybody else notice that there is a huge performance difference between a TreeViewer
and a TableViewer
( TreeViewer
is much faster).
I have a Table containing CellEditors
(with EditingSupport
) with about 30 columns and when I'm scrolling it, especially horizontally, it's very slow. Also multi cell selection is slow too.
I changed the table to a Tree (just changed the main TableViewer
to a TreeViewer
and the specific classes) and there is a huge performance gain.
Why is this? Both table and tree have the same structure, implement and extend the same classes and tree is the one with more functionality. Is this fixed in newer versions of eclipse or should I just migrate my table to a tree with no children?
PS I'm using SWT and JFace 3.7 on win7.
Thanks in advance.
For performance, try using the ILazyTreeContentProvider
.
See also this post: Eclipse RCP - ILazyTreeContentProvider implementation is unexpectedly eager .
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.