eclipse-jdt / eclipse-jdt/eclipse.jdt.core

Changing JRE of Execution Environment is needlessly slow

Open
#2,884 0 comments 0 reactions 0 assignees View on GitHub
performance
Dominant language
Java
Stars
237
Forks
195
Avg merge
1d 12h
Merged PRs (30d)
47

Description

For example in the platform workspace changing the JRE freezes the UI for ~ 17sec.
![image](https://github.com/user-attachments/assets/a0602c89-b09b-421c-bf62-b6a3a65a8f0c)
![image](https://github.com/user-attachments/assets/911c6d5a-a4a1-4a3b-8055-f8071b493e3a)
![image](https://github.com/user-attachments/assets/81f5f25a-7685-4edb-9a08-e477612d18f5)

There seem to be multiple reasons. Biggest:

1. 10 seconds to touch all projects:

![image](https://github.com/user-attachments/assets/2e5d40d4-7ca8-48ff-8584-99fab4e66acc)

2. 5 seconds in UI thread: to repeated scan the whole JRT for **every affected java project** in workspace:

![image](https://github.com/user-attachments/assets/6680e08a-d9dd-428a-ad24-7a54f866c948)

The result (list of files in the JDK) could be shared between projects.
If that happens also during eclipse restart it might be worth for an optimization.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.