[GRADLE-828] gradle -v is very slow Created: 18/Feb/10 Updated: 04/Jan/13 Resolved: 24/Nov/10
|Reporter:||Tomek Kaczanowski||Assignee:||Russel Winder|
gradle -v is 10x slower than mvn -v or ant -v which makes a bad impression
I past here the answer given by Hans, which describes both the cause and possible solution:
|Comment by Russel Winder [ 19/Feb/10 ]|
I suspect the Groovy nature of this file is not the problem. I was getting:
so I thought I would try recoding the class as a Java class, did so and got:
I can commit this change but I am not sure it is worth it.
|Comment by Tomek Kaczanowski [ 19/Feb/10 ]|
>I can commit this change but I am not sure it is worth it.
|Comment by Hans Dockter [ 19/Feb/10 ]|
Yes, Russel. Please commit.
How would your times compare to a gradle -h?
|Comment by Russel Winder [ 20/Feb/10 ]|
OK, I will commit as soon as the integration tests have run (and passed ) – the unit tests pass fine.
I should note that there is a cold/warm difference here that is the same for Maven as well as Gradle. If Java is not in the cache then "mvn -v" and "gradle -v" take a lot longer than when it is. We should therefore, for these performance issues, always separate cold and warm times, and ensure we always use the same category when making comparisons.
Currently, "gradle -h" takes:
for a warm setup on the same machine, under more or less the same load, as the figures above.
|Comment by Russel Winder [ 22/Feb/10 ]|
I have committed the Java file replacing the Groovy file to Trunk. This should deal with GradleVersion. Are there other classes that need converting?