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

Improve performance of multimodule build by reusing compiler objects #720

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

micossow
Copy link

Hi,

We're using the scala-maven-plugin for one of our projects having multiple maven modules with scala code.
We observed, that each invocation of scala:compile hangs the build for several seconds.
After some digging into the plugin code I found out, that it does cold start of the compiler infrastructure each time it is invoked.
I managed to rearrange some code to make it possible to share the compiler bridge jar and compiler objects via static fields.
This simple change reduces mvn clean install (without tests) execution time by ~50%.

@davidB
Copy link
Owner

davidB commented Sep 16, 2023

@micossow Thanks for the PR.

I no longer actively maintain the plugin, especially the SBT parts. @slandelle can you look at it when you'll have time?

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

Successfully merging this pull request may close these issues.

None yet

2 participants