Skip to content

Commit

Permalink
improve JavaSearchScopeTests.testBug250211() cleanup performance
Browse files Browse the repository at this point in the history
use single workspace operation for all projects

18s -> 5s
  • Loading branch information
jukzi committed Jan 7, 2025
1 parent 83ee4c5 commit 0c40693
Showing 1 changed file with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1132,12 +1132,13 @@ public void run(IProgressMonitor monitor) throws CoreException {
},
null);
SearchEngine.createJavaSearchScope(projects);
}
finally {
for (int i = 0; i < max; i++){
assertNotNull("Unexpected null project!", projects[i]);
deleteProject(projects[i]);
}
} finally {
JavaCore.run(m -> {
for (int i = 0; i < max; i++) {
assertNotNull("Unexpected null project!", projects[i]);
deleteProject(projects[i]);
}
}, null);
}
}
// https://bugs.eclipse.org/bugs/show_bug.cgi?id=397818
Expand Down

0 comments on commit 0c40693

Please sign in to comment.