Community
Participate
Working Groups
I20050509-2010: Steps to reproduce: - Open Organize Imports preference page - Create new import group - Browse for packages -> Takes several seconds to show the packages selection dialog. Even if the dialog is visible, packages are filled in. -> Performance of computing the packages list could be improved -> Dialog could be made visible earlier (to better report progress)
The PackageSelectionDialog is used that is also use by the API on JavaUI.
The dialog uses the search engine to collect all packages. The call is: SearchPattern pattern= SearchPattern.createPattern("*", //$NON-NLS-1$ IJavaSearchConstants.PACKAGE, IJavaSearchConstants.DECLARATIONS, SearchPattern.R_PATTERN_MATCH | SearchPattern.R_CASE_SENSITIVE); Moving to JDT/Core. IMO not important for 3.1 since we hae this in since 1.0.
Defer post 3.1
Reopen for 3.2
Fixed and released in HEAD. Changes done in MatchLocator.locatePackageDeclarations to avoid unnecessary instanciation of PossibleMatch objects. No specific test case added, just verify that all existing tests pass. A new performance test will be added on FullSourceWorkspaceSearchTests soon. Initial measures on this new test show that gain is between 50% and 60% depending on test box (respectively Linux and WinXP).
FullSourceWorkspaceSearchTests#testSearchPackageDeclarations() test case added. Our local performance tests results show a gain of 62.55% on Linux box and 68.17% on WinXP box.
Verified using I20060328-0010 for 3.2M6