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.

'lein help' does quite a lot of work behind the scenes because it
looks at plugins etc to display help for those too.

With Leiningen 2 on my Mac, a simple (defn -main [& args] (println
"Hello World")) program takes about 2.4s to run (lein2 run -m
hello.core) which is not terrible given that you're starting up the
JVM and compiling the .clj file on the fly.

If I create an uberjar (specify :main hello.core in project.clj and
add (:gen-class) to the hello.core ns), then it takes just under 1s to
run with java -jar - again, not bad considering it's starting up the
JVM.
-- 
Sean A Corfield -- (904) 302-SEAN
An Architect's View -- http://corfield.org/
World Singles, LLC. -- http://worldsingles.com/

"Perfection is the enemy of the good."
-- Gustave Flaubert, French realist novelist (1821-1880)

-- 
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