You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While looking at a problem here I noticed that PackageFragmentRoot.getRawClasspathEntry() has a very bad impact on startup performance because it calls project.getResolvedClasspath()
project.getResolvedClasspath(); // force the reverse rawEntry cache to be populated
this leads to a resolve operation of all classpath containers (that actually should happen in a background thread!) in the main UI thread whenever one has an open Java Editor + Package Explorer open. This even blocks the whole UI startup of eclipse.
This is sadly not the only place where this could happen... but the other places are more UI related.
The text was updated successfully, but these errors were encountered:
While looking at a problem here I noticed that
PackageFragmentRoot.getRawClasspathEntry()
has a very bad impact on startup performance because it callsproject.getResolvedClasspath()
eclipse.jdt.core/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/PackageFragmentRoot.java
Line 616 in 17fc318
this leads to a resolve operation of all classpath containers (that actually should happen in a background thread!) in the main UI thread whenever one has an open Java Editor + Package Explorer open. This even blocks the whole UI startup of eclipse.
This is sadly not the only place where this could happen... but the other places are more UI related.
The text was updated successfully, but these errors were encountered: