Community
Participate
Working Groups
I20080502-0100 FullSourceWorkspaceTypeHierarchyTests.testPerfAllTypes() shows a performance regression around 3%.
As the consequence of the fix for bug 182738, the order of path returned by JavaWorkspaceScope#enclosingProjectAndJars() is different. The HandleFactory walks this list and performance is affected because of the different ordering.
Created attachment 98449 [details] Proposed fix This fix avoids the walking of the enclosingProjectsAndJars() by asking the scope directly for the package fragment root.
With this fix, performance of type hierarchy is back to 3.3 performance. Frederic can you please review?
The patch looks good to me.
Released for 3.4RC1. To verify, check the performance results for FullSourceWorkspaceTypeHierarchyTests#testPerfAllTypes() in <download_server>/downloads/drops/S-3.4M7-200805020100/performance/org.eclipse.jdt.core.php?
Verified for 3.4RC1.