-
Enhancement
-
Resolution: Won't Do
-
Trivial
-
None
-
2.13.0.Final
-
None
I want to fetch all available projects. The following source works as needed but needs at least 2 mins until completed (about 30 projects):
protected void setupProjects(UIBuilder builder) {
Project entityProject = getSelectedProject(builder.getUIContext());
Resource<?> resource = entityProject.getRoot().getParent();
allProjects = new HashSet<>();
for (Resource<?> res : resource.listResources()) {
DirectoryResource directory = (DirectoryResource) res.reify(DirectoryResource.class);
if (directory != null) {
Project proj = projectFactory.findProject(directory);
if (proj != null)
}
}
}
Is there a faster way to iterate through the projects or maybe some initialization can be done by "lazy loading"?