Bug 3313 - Severe - Performance - Java Model redundancies (1GFKTUN)
Summary: Severe - Performance - Java Model redundancies (1GFKTUN)
Status: RESOLVED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.0   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 2.0 M5   Edit
Assignee: Jerome Lanneluc CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-10-10 22:53 EDT by Kent Johnson CLA
Modified: 2002-03-26 13:18 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 Kent Johnson CLA 2001-10-10 22:53:03 EDT
Look for senders of addChild... you'll notice CompilationUnitStructureRequestor has several which also include
addField/Method/MemberType being sent to SourceTypeElementInfo's.

So for the typical type which has a 2 fields & 20 methods, you have:
	- an 23 element array of all children,
	- a 2 element field array &
	- a 20 element method array.

Quite the overhead (~120 bytes) for no real value... getFields/Methods could easily be implemented to extract
the items out of the children.

NOTES:
Comment 1 Philipe Mulet CLA 2001-10-11 09:39:21 EDT
Performance work
Comment 2 Jerome Lanneluc CLA 2002-03-26 13:18:05 EST
Implemented getFields, getMethods and getMemberTypes to extract the items out 
of the children.
Removed the corresponding fields.