Bug 27110 - ListenerList should default its size to 1
Summary: ListenerList should default its size to 1
Status: RESOLVED WONTFIX
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 2.1   Edit
Hardware: PC Windows 2000
: P2 normal (vote)
Target Milestone: 2.1 M4   Edit
Assignee: Adam Kiezun CLA
QA Contact:
URL:
Whiteboard:
Keywords: performance
Depends on: 27938
Blocks:
  Show dependency tree
 
Reported: 2002-11-25 12:34 EST by Adam Kiezun CLA
Modified: 2002-12-10 08:44 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Adam Kiezun CLA 2002-11-25 12:34:05 EST
i'm having a hard time finding a single instance of ListenerList class 
(i'm running under a profiler) 
in which the list would contain more than 1 element

so the other 2 are almost always wasted
because this class is instantiated many, many times (i just started and see 
more than 1300 instances) the default size should be 1. 
It can then grow if necessary.

see bug 27108 - this class is copied from Workbench
Comment 1 Nick Edgar CLA 2002-12-04 16:31:32 EST
See comments in bug 27108.
Comment 2 Nick Edgar CLA 2002-12-04 16:32:13 EST
Note that the other copies are in JDT Core.
UI components should just use the one in JFace.
Comment 3 Adam Kiezun CLA 2002-12-10 08:44:12 EST
closing this one - it was the jface ListsnerList that was the problem
one bug 27938 is fixed we will be able to have just 1 ListenerLists class