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

Reduce the target platform size by eliminating unnecessary bundles. #2516

Merged
merged 1 commit into from
Mar 7, 2023

Conversation

rgrunber
Copy link
Contributor

@rgrunber rgrunber commented Mar 7, 2023

  • Only include org.eclipse.lsp4j and not bundles in the lsp4j feature
  • Only include required subset of the m2e.feature.group

The real motivation for this change is I suspect some bundles being included through the m2e feature group, are severely slowing down the test runtime in Eclipse. I don't think it affects Maven. It's only Eclipse that will run a test by default, by including all bundles within the target platform.

The target platform is installed to ~/${your-jdt-ls-workspace}/.metadata/.plugins/org.eclipse.pde.core/.bundle_pool/plugins/ . To test the difference I deleted the folder between changes.

Before this change
783 bundles - 342MB
2.5min to run CleanUpsTest

With this change
685 bundles - 314MB
25s to run CleanUpsTest

- Only include org.eclipse.lsp4j and not bundles in the lsp4j feature
- Only include required subset of the m2e.feature.group

Signed-off-by: Roland Grunberg <rgrunber@redhat.com>
Copy link
Contributor

@datho7561 datho7561 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. Thanks, Roland!

Copy link
Contributor

@JessicaJHee JessicaJHee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! I did notice a slight improvement in the speed when running the tests

@rgrunber rgrunber added this to the Mid March 2023 milestone Mar 7, 2023
@rgrunber rgrunber merged commit f3b12ab into eclipse-jdtls:master Mar 7, 2023
@rgrunber rgrunber deleted the slim-target branch March 7, 2023 22:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants