Java – Jface tableviewer vs treeview – performance

Has anyone noticed that there is a huge performance difference between treeviewer and tableviewer (treeviewer is much faster)

I have a table with cell editors (with editing support) with about 30 columns. When I scroll it, especially horizontal, it's very slow Multicellular selection is also slow

I changed the table to a tree (just changed the main viewviewer to treeview and a specific class), and there is a huge performance gain

Why? Tables and trees have the same structure, implement and extend the same classes, and trees are trees with more functions Is this fixed in a newer version of eclipse or should I move my desk to a tree without children?

Attachment: I use SWT and Jface 3.7 on win7

Thank you in advance

Solution

For presentation, try using ilazytreecontentprovider

See also this article: Eclipse RCP – ilazytreecontentprovider implementation is unexpectedly eager

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>