> Just downloaded the CLR version of clojure and are experiencing a
> pretty awkward boot up time of the ClojureMain.exe (~10 sec)
> I've tried to ngen the exe and it's dependencies but without any luck.
> Compiling and Running from within VS2010 it takes approximately the
> same...


Sadly, I think this is normal. Clojure on the JVM starts up in about
4-5 sec on my machine. I've found that Clojure-CLR is much slower.

As an example here's what's happening:
1) the Clojure-CLR assembly loads
2) Clojure-CLR is run through some initial JIT compilation
3) Clojure-CLR loads core.clj which is about 200KB of Clojure code
4) core.clj is translated to CLR classes, functions, etc.
5) core.clj is run through the JIT
6) other supporting .clj files are read, translated, and run through the JIT
7) now you are at the REPL

I think the only real way to improve these startup times is to do what
Python does, and have cached assemblies so that core.clj doesn't have
to be re-compiled each and every time. But as far as I know no one is
even looking into this.

Timothy

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