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

[Run configurations... dialog] Opening a JUnit configuration takes too long (UI freeze) #8

Closed
fedejeanne opened this issue Jul 20, 2023 · 8 comments
Assignees
Labels
JDT Issues for JDT Performance A Request for a Performance Improvement

Comments

@fedejeanne
Copy link

This issue is a specific use case of vi-eclipse/Eclipse-Platform#3. Check that issue for more details and expected behavior.

@fedejeanne fedejeanne self-assigned this Jul 20, 2023
@fedejeanne fedejeanne converted this from a draft issue Jul 20, 2023
fedejeanne added a commit to fedejeanne/eclipse.jdt.ui that referenced this issue Jul 20, 2023
…e-jdt#653

Move the logic to search for test methods from
`JUnitLaunchConfigurationTab` to `TestSearchEngine::findTestMethods`.
Extract the whole logic for caching the results into `TestMethodsCache`
(new class) and do the whole searching and caching more efficiently i.e.
only when necessary and showing the progress with a monitor by using
`ModalContext::run`

Fixes vi-eclipse/Eclipse-JDT#8
Contributes to eclipse-jdt#653
@HeikoKlare HeikoKlare added JDT Issues for JDT Performance A Request for a Performance Improvement labels Jul 25, 2023
@fedejeanne
Copy link
Author

Transferred to eclipse-jdt/eclipse.jdt.ui#683

fedejeanne added a commit to fedejeanne/eclipse.jdt.ui that referenced this issue Jul 26, 2023
…e-jdt#653

Move the logic to search for test methods from
`JUnitLaunchConfigurationTab` to `TestSearchEngine::findTestMethods`.
Extract the whole logic for caching the results into `TestMethodsCache`
(new class) and do the whole searching and caching more efficiently i.e.
only when necessary and showing the progress with a monitor by using
`ModalContext::run`

Fixes vi-eclipse/Eclipse-JDT#8
Contributes to eclipse-jdt#653
@fedejeanne fedejeanne moved this from 👀 In review to ✅ Done in Eclipse Sep 25, 2023
@HeikoKlare
Copy link
Contributor

@fedejeanne This issue is "open" but has been moved to "Done" in our backlog. Can you please either move it to the proper state in the backlog or document how/why it is done and close it afterwards?

@fedejeanne
Copy link
Author

This issue was fixed by eclipse-jdt/eclipse.jdt.ui#675: a progress indicator was added

@HeikoKlare
Copy link
Contributor

Do we already have some follow-up issue for improving the handling of the long running action (making it faster, performing it asynchronously, performing it on-demand etc,)? Otherwise we should create that one.

@fedejeanne
Copy link
Author

There's eclipse-jdt/eclipse.jdt.core#1214 . Is that what you mean?

I haven't spent any time on that though. I could start looking into it next week if you want? It will probably overlap with other performance issues in JDT so it would make sense to go over it together.

@HeikoKlare
Copy link
Contributor

That is one option. But we also discussed alternatives/additions like computing the super types asynchronously and disabling the according field in the UI as long as it has not been calculated. Or even to compute whole launch configuration pages asynchronously and show a progress bar in the right side of the launch configurations dialog while loading the information. Those approaches would ensure that even in case of regressions w.r.t. single data providers for the dialog, it will still stay responsibe (i.e., it will avoid performance regressions such as the existing ones).

I'd like to have an issue or multiple issues documenting those ideas in our backlog. I would also like to have an issue in our backlog representing eclipse-jdt/eclipse.jdt.core#1214. Otherwise we won't know that there is some JDT issue of that specific interest for us.

@HeikoKlare
Copy link
Contributor

I see that we also have vi-eclipse/Eclipse-Platform#3, so it might make sense to document those ideas there and only have a separate JDT-specific backlog item for which the jdt.core issue already exists.

@fedejeanne
Copy link
Author

See #16

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
JDT Issues for JDT Performance A Request for a Performance Improvement
Projects
Status: Done
Development

No branches or pull requests

2 participants