Bug 10152

Summary: Computing hierarchy of IResource is slow
Product: [Eclipse Project] JDT Reporter: Jerome Lanneluc <jerome_lanneluc>
Component: CoreAssignee: Philipe Mulet <philippe_mulet>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 2.0   
Target Milestone: 2.0 M4   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

Description Jerome Lanneluc CLA 2002-02-25 06:51:06 EST
Build 20020214

Computing the hierarchy of IResource can take more than 30s.
75% of the time is spent getting the potential subtypes from the indexes.
Comment 1 Jerome Lanneluc CLA 2002-02-25 11:01:47 EST
The recursive call to the SuperTypeReferencePattern to find possible subtypes 
was the bottleneck. It was querying all indexes in the workspace for each 
subtype.

Querying all potential subtypes at once (and caching the result) reduced the 
time spent getting the potential subtypes to less than a second.