Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Performance of ComboViewer
Performance of ComboViewer [message #266280] Tue, 10 August 2004 11:23
Eclipse UserFriend
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
Previous Topic:calling Update Manager from batch
Next Topic:Programmatic access to development workbench for logging?
Goto Forum:
  


Current Time: Wed Apr 23 23:13:57 EDT 2025

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

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

Back to the top