Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsTreeViewer refresh performance
https://www.eclipse.org/forums/index.php/mv/msg/162377/513534/#msg_513534
I've messured that my tree takes over 2 seconds for a refresh on a element in atree with about 10000 elements. Thats too slow for our use cases; is there a possibility to speed this up or sth like a SWT.Virtual flag for trees ....]]>philipp huebner2010-02-10T14:10:23-00:00Re: TreeViewer refresh performance
https://www.eclipse.org/forums/index.php/mv/msg/162377/513549/#msg_513549
Tom
Am 10.02.10 15:10, schrieb philipp huebner:
> Hi folks,
>
> I've messured that my tree takes over 2 seconds for a refresh on a
> element in atree with about 10000 elements. Thats too slow for our use
> cases; is there a possibility to speed this up or sth like a SWT.Virtual
> flag for trees ....]]>Thomas Schindl2010-02-10T14:31:48-00:00Re: TreeViewer refresh performance
https://www.eclipse.org/forums/index.php/mv/msg/162377/657102/#msg_657102
Is JFace's Tree Performance really that bad? That can't be possible. It must be able to handle this....]]>philipp huebner2011-03-01T15:39:03-00:00Re: TreeViewer refresh performance
https://www.eclipse.org/forums/index.php/mv/msg/162377/657120/#msg_657120
them into one big flush you do:
try {
tree.getControl().setRedraw(false);
// Make you UI-Updates
} finally {
tree.getControl().setRedraw(true); // Flush all changes at once
}
Am 01.03.11 16:39, schrieb philipp huebner:
> ahh....nope. But why....Then you disable the entire tree. I want still
> draw it.... Is JFace's Tree Performance really that bad? That can't be
> possible. It must be able to handle this....]]>Thomas Schindl2011-03-01T15:57:23-00:00Re: TreeViewer refresh performance
https://www.eclipse.org/forums/index.php/mv/msg/162377/657261/#msg_657261
]]>philipp huebner2011-03-02T08:48:27-00:00Re: TreeViewer refresh performance
https://www.eclipse.org/forums/index.php/mv/msg/162377/657262/#msg_657262
Tom
Am 02.03.11 09:48, schrieb philipp huebner:
> Ok I understand; but does this really work. I have really one call of
> tree->refresh. Whre do I have to add this code?
>
>
>]]>Thomas Schindl2011-03-02T08:53:21-00:00Re: TreeViewer refresh performance
https://www.eclipse.org/forums/index.php/mv/msg/162377/657272/#msg_657272
I have a customized tree viewer for an emf model. There are many unnecessary update events which are cached to one update, but this one update is still very slow.
Disable redrawing could only be a solution if you do it in an inherited method of the tree itself. I]]>philipp huebner2011-03-02T09:54:19-00:00Re: TreeViewer refresh performance
https://www.eclipse.org/forums/index.php/mv/msg/162377/665898/#msg_665898
jim liu2011-04-18T05:07:31-00:00