Seesaw Compilation Slow

81 views
Skip to first unread message

Nick Mudge

unread,
Nov 27, 2012, 3:11:06 PM11/27/12
to seesa...@googlegroups.com
I'm using Clojure 1.3 with leiningen2.

I added seesaw as a dependency: 
[seesaw "1.4.2"]

Then I added it to my clojure file in the ns macro:
(:use seesaw.core)

Then I compiled the file:
lein compile

It takes 2 or 3 minutes to compile.

Without (:use seesaw.com) in my file my project compiles in 7 seconds.

I also tried this using the develop branch of seesaw 1.4.3-SNAPSHOT and Clojure 1.4,  with the same results.

I need to aot compile my classes. Why is it slow, can it be fast?

Nick

Nick Mudge

unread,
Nov 27, 2012, 3:55:30 PM11/27/12
to seesa...@googlegroups.com
Could it be that it just takes awhile to create the seesaw class files in target/classes/seesaw ?

I notice that it only takes a long time to compile if I delete target/classes/seesaw and then compile.

Dave Ray

unread,
Nov 28, 2012, 12:36:43 AM11/28/12
to seesa...@googlegroups.com
Hi,

I'm not particularly versed in the intricacies of AOT. I made a simple
test app with Seesaw 1.4.2 and both Clojure 1.3.0 and 1.4.0. "lein2
compile" takes about 8s to generate about 1500 class files. I'm using
"Leiningen 2.0.0-preview10 on Java 1.6.0_37 Java HotSpot(TM) 64-Bit
Server VM"

Dave

Andy Fingerhut

unread,
Dec 1, 2012, 8:50:38 PM12/1/12
to seesa...@googlegroups.com
OS can make a difference here, too. I have only done Clojure on Windows (XP and 7) a little bit, and so far only on top of Cygwin. More commonly I use Clojure on Mac OS X or Linux. It has always been noticeably slower on Windows + Cygwin, even on identical hardware. I don't know why.

Andy

Andy Fingerhut

unread,
Dec 1, 2012, 8:51:36 PM12/1/12
to Andy Fingerhut, seesa...@googlegroups.com
I should say that when I say it is slower, I mean things that do lots of file I/O, like compilation does. For straight computation I haven't noticed much of a difference in speed.

Andy

jmg...@gmail.com

unread,
Jan 7, 2013, 1:20:34 PM1/7/13
to seesa...@googlegroups.com
When I first added the dependency and ran a little test app, it took a while (a couple of minutes?) for me as well.

After that first time through though, if I make some small change and then run the app, it seems to take from about 5 to 12 seconds to compile.

This is with Clojure 1.4 and seesaw 1.4.2.

---John
Reply all
Reply to author
Forward
0 new messages