Performance of ComboViewer [message #266280] |
Tue, 10 August 2004 15:23 |
Thomas Schindl Messages: 6651 Registered: July 2009 |
Senior Member |
|
|
Hi,
Today I wondered why one of my JFace-ComboViewer was that slow if a
great amount of entries where filled in.
I started to investigate and found out the following:
-----------------------8<-----------------------
widget_ = new ComboViewer(comp,SWT.H_SCROLL|SWT.V_SCROLL|SWT.READ_ONLY);
widget_.setUseHashlookup(true);
widget_.setContentProvider( provider );
widget_.setLabelProvider( provider.getLabelProvider() );
widget_.setInput( provider.getListProvider() );
-----------------------8<-----------------------
It took 308 ms
-----------------------8<-----------------------
widget_ = new ComboViewer(comp,SWT.H_SCROLL|SWT.V_SCROLL|SWT.READ_ONLY);
widget_.setUseHashlookup(true);
widget_.setContentProvider( provider ); // LINES
widget_.setInput( provider.getListProvider() ); // SWITCHED
widget_.setLabelProvider( provider.getLabelProvider() );
-----------------------8<-----------------------
It took 94519 ms.
Is this known, and why is this happening?
Tom
|
|
|
Powered by
FUDForum. Page generated in 0.03097 seconds