Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[performance] PackageFragmentRoot.getRawClasspathEntry() has bad impact on startup performance #3468

Open
laeubi opened this issue Dec 17, 2024 · 2 comments
Assignees

Comments

@laeubi
Copy link
Contributor

laeubi commented Dec 17, 2024

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.

@srikanth-sankaran
Copy link
Contributor

Jay, thanks for taking a look

@laeubi
Copy link
Contributor Author

laeubi commented Dec 17, 2024

Especially calling "Raw" ClasspathEntry would indicate for me it is actually not resolved as there is also

public IClasspathEntry getResolvedClasspathEntry() throws JavaModelException {

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants