Community
Participate
Working Groups
20021127 PackageFragmentRoot calls attachSource on openWhenClosed which happens in the following scenario: 1. 'collapse all' in package explorer 2. restart eclipse 3. expand one project (i tried a source project - probably true for any) 4. you wait a long time and 40% of that time is spent on attaching source to a binary file that you have not touched yet will attach profile
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.