Bug 10152 - Computing hierarchy of IResource is slow
Summary: Computing hierarchy of IResource is slow
Status: RESOLVED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: 2.0 M4   Edit
Assignee: Philipe Mulet CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-02-25 06:51 EST by Jerome Lanneluc CLA
Modified: 2002-02-25 11:01 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 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.