eclipse-jdt / eclipse-jdt/eclipse.jdt.ui

Run As/Debug As context menu in java source editor very slow

Open
#1,056 9 comments 0 reactions 0 assignees View on GitHub
performance
Dominant language
Java
Stars
59
Forks
127
Avg merge
23h 30m
Merged PRs (30d)
35

Description

Hi experts,

opening the context menu "Run As"->"JUnit Test" on a TestSuite class takes quite a while on my machine.

The profiler points me to JUnit4TestFinder#internalIsTest
![image](https://github.com/eclipse-jdt/eclipse.jdt.ui/assets/10373336/ad01f051-d2c1-4cd7-9f75-f00fc35c12bf)

Is bug 156352 now fixed and can the slow parser call be replaced?
https://github.com/eclipse-jdt/eclipse.jdt.ui/blob/1ddb4575d97e889590ab79693f17af85185a032b/org.eclipse.jdt.junit.core/src/org/eclipse/jdt/internal/junit/launcher/JUnit4TestFinder.java#L222

What do you think?

With best regards,
Tobias

Contributor guide

Open the contributing guide

Research direction

Start in org.eclipse.jdt.junit.core/src/org/eclipse/jdt/internal/junit/launcher/JUnit4TestFinder.java at JUnit4TestFinder#internalIsTest, and review the referenced bug 156352. Reproduce the slow Run As → JUnit Test context-menu action on a TestSuite class, then compare the parser call with the available replacement. Done means the context-menu action no longer incurs the reported delay.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
developer-experience, performance, testing-qa
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.