On Wed, Jun 13, 2012 at 5:27 PM, Warren Lynn <wrn.l...@gmail.com> wrote:
> I cannot help notice that leinengen seems quite slow. Even "lein help" takes
> 8 seconds to finish printing all the information. I am using version 2 on
> Windows 7(that .bat file). Can anyone explain what is going on? Or is it
> just me? Thank you.

You should consider `lein help` basically the worst-case scenario for
benchmarking since it has to load absolutely everything. A better base
case is `lein version` for just the overhead of Leiningen itself,
which we try to get to complete in under a second on a fast machine
with a warm cache. (There's currently a regression where this is
~1.4s, but this is being treated as a bug.)

But tasks that involve running project code are necessarily slower
since a second JVM is involved for purposes of isolation. A good
benchmark here is `lein run -m clojure.main/main nil`, which takes
about 3s on my machine. Most people have development styles that don't
involve launching a new JVM very often though; generally you start
your repl and leave it running for days. It does mean that Clojure is
ill-suited for certain unixy tasks though.

Most of this is simply the time it takes to load Clojure code. While
the JVM has had a lot of investment in its performance, nearly all of
it has been focused on long-running processes; they haven't seemed to
be interested in improving boot time since it became clear that
applets were on their way out.

-Phil

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to