Summary: | [startup] PackageFragmentRoot - source attached too early (?) | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Adam Kiezun <akiezun> | ||||||
Component: | Core | Assignee: | Jerome Lanneluc <jerome_lanneluc> | ||||||
Status: | VERIFIED FIXED | QA Contact: | |||||||
Severity: | normal | ||||||||
Priority: | P3 | Keywords: | performance | ||||||
Version: | 2.1 | ||||||||
Target Milestone: | 2.1 M4 | ||||||||
Hardware: | PC | ||||||||
OS: | Windows 2000 | ||||||||
Whiteboard: | |||||||||
Attachments: |
|
Description
Adam Kiezun
2002-12-03 05:43:18 EST
Created attachment 2620 [details]
attachSource on first expansion of a java project
Created attachment 2623 [details]
attachSource on first switch to java
the same thing is responsible for 19% of time need to switch to java
perspective the frist time
I even think that the guilty code is earlier: JavaProjectElementInfo.computeNonJavaResources() calls JavaProject.findPackageFragment0() which forces the opening of all package fragment roots of the project. Entered bug 27840 for the JavaProjectElementInfo.computeNonJavaResources(). We can still avoid to attach the source too early as described in this bug. Changed implementation to lazy initialize SourceMapper. Verified. |