[ 
https://issues.apache.org/jira/browse/GROOVY-9964?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Sterling Greene updated GROOVY-9964:
------------------------------------
    Description: 
We've seen a large increase in Groovy compilation time from Groovy 2.5.12 -> 
3.0.7 for Groovy DSL based build scripts.

In this generated 500 project Gradle build, you'll see...

5s script compilation time with Groovy 2.5:
 
[https://scans.gradle.com/s/vslkwp76qhdpu/performance/configuration?details=summary-script-compile]

18-19s script compilation time with Groovy 3.0 (3-4x worse):
 
[https://scans.gradle.com/s/pfudiyxhmtjfa/performance/configuration?details=summary-script-compile]

Please try the attached project with Gradle 7.0-milestone-2 (it uses Groovy 
3.0.7).
 [https://services.gradle.org/distributions/gradle-7.0-milestone-2-bin.zip]

The simplest way to force script compilation is to delete the script cache 
directory in ~/.gradle/caches/<gradle version>.

I couldn't attach the project, so I put a copy of it here: 
[https://github.com/big-guy/largeJavaMultiProject]

 

  was:
We've seen a large increase in Groovy compilation time from Groovy 2.5.12 -> 
3.0.7 for Groovy DSL based build scripts.

In this generated 500 project Gradle build, you'll see...

5s script compilation time with Groovy 2.5:
https://scans.gradle.com/s/vslkwp76qhdpu/performance/configuration?details=summary-script-compile

18-19s script compilation time with Groovy 3.0 (3-4x worse):
https://scans.gradle.com/s/pfudiyxhmtjfa/performance/configuration?details=summary-script-compile

Please try the attached project with Gradle 7.0-milestone-2 (it uses Groovy 
3.0.7).
https://services.gradle.org/distributions/gradle-7.0-milestone-2-bin.zip

The simplest way to force script compilation is to delete the script cache 
directory in ~/.gradle/caches/<gradle version>.


> Groovy 3 compilation is much slower than Groovy 2 compilation for Gradle 
> build scripts
> --------------------------------------------------------------------------------------
>
>                 Key: GROOVY-9964
>                 URL: https://issues.apache.org/jira/browse/GROOVY-9964
>             Project: Groovy
>          Issue Type: Improvement
>          Components: Compiler
>    Affects Versions: 3.0.7
>            Reporter: Sterling Greene
>            Priority: Major
>
> We've seen a large increase in Groovy compilation time from Groovy 2.5.12 -> 
> 3.0.7 for Groovy DSL based build scripts.
> In this generated 500 project Gradle build, you'll see...
> 5s script compilation time with Groovy 2.5:
>  
> [https://scans.gradle.com/s/vslkwp76qhdpu/performance/configuration?details=summary-script-compile]
> 18-19s script compilation time with Groovy 3.0 (3-4x worse):
>  
> [https://scans.gradle.com/s/pfudiyxhmtjfa/performance/configuration?details=summary-script-compile]
> Please try the attached project with Gradle 7.0-milestone-2 (it uses Groovy 
> 3.0.7).
>  [https://services.gradle.org/distributions/gradle-7.0-milestone-2-bin.zip]
> The simplest way to force script compilation is to delete the script cache 
> directory in ~/.gradle/caches/<gradle version>.
> I couldn't attach the project, so I put a copy of it here: 
> [https://github.com/big-guy/largeJavaMultiProject]
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to