Hi Tomek,

On Thu, Feb 18, 2010 at 8:42 PM, Tomek Kaczanowski <
[email protected]> wrote:

> Hello All,
>
> it is not a big deal but why gradle -v is soooo sloooow ?
>

There is a simple explanation for that. The GradleVersion class, which does
the output, is written in Groovy. Thus you pay the whole Groovy startup time
price. As a comparison, for gradle -h only Java is involved. This is as fast
as doing something similar with Ant or Maven.

Two things:
- There is no strong reason why GradleVersion needs to be written in Groovy.
We should do it in Java.
- The Groovy startup is eventually going to improve. Some improvements are
already in the upcoming 1.7.1 release. Further improvements will be in the
1.8 release.

- Hans

--
Hans Dockter
Founder, Gradle
http://www.gradle.org, http://twitter.com/gradleorg
CEO, Gradle Inc. - Gradle Training, Support, Consulting
http://www.gradle.biz



>
> to...@tomek-desktop:~$ time gradle -v
>
> ------------------------------------------------------------
> Gradle 0.8
> ------------------------------------------------------------
>
> Gradle buildtime: Monday, September 28, 2009 2:01:59 PM CEST
> Groovy: 1.6.4
> Ant: Apache Ant version 1.7.0 compiled on December 13 2006
> Ivy: 2.1.0-rc2
> Java: 1.6.0_15
> JVM: 14.1-b02
> JVM Vendor: Sun Microsystems Inc.
> OS Name: Linux
>
>
> real    0m2.044s
> user    0m1.788s
> sys     0m0.112s
>
>
>
> to...@tomek-desktop:~$ time mvn -v
> Apache Maven 2.2.1 (r801777; 2009-08-06 21:16:01+0200)
> Java version: 1.6.0_15
> Java home: /usr/lib/jvm/java-6-sun-1.6.0.15/jre
> Default locale: en_US, platform encoding: UTF-8
> OS name: "linux" version: "2.6.31-19-generic" arch: "i386" Family: "unix"
>
> real    0m0.279s
> user    0m0.160s
> sys     0m0.056s
> to...@tomek-desktop:~$
>
>
>
>
> to...@tomek-desktop:~$ time ant -v
> Apache Ant version 1.7.1 compiled on June 27 2008
> Buildfile: build.xml does not exist!
> Build failed
>
> real    0m0.275s
> user    0m0.156s
> sys     0m0.020s
>
>
> --
> Regards,
> Tomek Kaczanowski
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>    http://xircles.codehaus.org/manage_email
>
>
>

Reply via email to