Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Performance of ComboViewer
Performance of ComboViewer [message #266280] Tue, 10 August 2004 15:23
Thomas Schindl is currently offline Thomas SchindlFriend
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
Previous Topic:calling Update Manager from batch
Next Topic:Programmatic access to development workbench for logging?
Goto Forum:
  


Current Time: Thu Dec 26 13:21:58 GMT 2024

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

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

Back to the top