[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [ease-dev] LinkProject very slow with many projects
|
Am Montag, dem 07.11.2022 um 16:59 +0100 schrieb Raphael Geissler:
>
> Thanks for the hint. It looks a little bit strange, but it is
> working. :)
Glad you found a workaround. Still strange that it works.
linkProject basically does:
final IProjectDescription description = getProjectDescription(folder);
final IProject project = getProject(description.getName());
project.create(description, null);
project.open(null);
Where project.open() is triggering resource changes, runs builds,
checkers etc.
From the docs:
"""
This method changes resources; these changes will be reported in a
subsequent resource change event that includes an indication that the
project has been opened and its resources have been added to the tree.
This method is long-running ...
"""
So I expect 50 project.open() calls will trigger 50 full (?) rebuilds
of your workspace. Interesting that calling them fromthe UI thread
eases execution times.
Anyway, good that you have a workaround :)
Christian