To fork or not to fork (javac) #30451
Labels
:Delivery/Build
Build or test infrastructure
>enhancement
Team:Delivery
Meta label for Delivery team
In order to speed up compilation on CI I think we should stop forking the java compiler. My tests on a 6 core machine show that this could give us a 2x speed-up.
Not forking for compilation:
Forking for compilation:
The code where we do forking has the comment
but I have not seen such issues. If we run
./gradlew clean compileJava compileTestJava --parallel
in a separate build step (for example in elasticsearch-ci), then this should pose no issue. We could also make this a configurable thing (-Pfork.compiler=false
) so the fast mode can be enabled for people that want faster compilation.The text was updated successfully, but these errors were encountered: