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
Performance regression of compileJava
task after update from 6.4.1
#14877
Comments
hint, possibly: if the build is run with javac parameters: like here, gradle 6.8.3:
gradle 6.3:
|
The problem is still present on 7.0-rc-1. |
This issue was resolved for me by updating my JDK. In my case going from OpenJDK 11.0.2 to 11.0.12 brought the compile times back to normal on the later versions of Gradle. |
Execution time of
compileJava
task is much slower when upgrading from 6.4.1 to newer versions (6.5-6.8) and usinghibernate-jpamodelgen
annotation processor (~15s vs ~40s for the real project, ~3s vs ~6s for the sample project linked below).Steps to Reproduce
git clone https://github.com/ve2m/gradle-performace-regression-demo.git
compileJava
takes ~3s for me../gradlew wrapper --gradle-version=6.4.1 && ./gradlew clean compileJava --info
compileJava
takes ~6s../gradlew wrapper --gradle-version=6.7 && ./gradlew clean compileJava --info
hibernate-jpamodelgen
is disabled),compileJava
takes ~3s../gradlew wrapper --gradle-version=6.7 && ./gradlew clean compileJava --info -PnoJpamodelgen
Your Environment
jpamodelgen
compileJava
timeThe text was updated successfully, but these errors were encountered: