Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

This is on a 2012 MBA for a prod build. I see times of 140s or 180s on a fresh dev build. Times are lower on faster machines but still in the multiple-minute range. I'll tweak the build JVM settings tomorrow and see if that improves things.



Yeah just doesn't sound plausible to me. I've seen bigger projects take less than a minute on a 2014 desktop.

For big prod builds you'll definitely want to give the JVM at least 1gb of RAM, make sure you actually override Lein's defaults:

    :jvm-opts ^:replace ["-Xmx1g" "-server"]


Just as another data point, our project is 16k lines (including tests) and I just timed it at 2.7 minutes to run "lein cljsbuild once" with no difference when setting those jvm-opts. This is on a quad core 2.8ghz i7 MBP.


:compiler-stats has been a thing for a while now. This would give more information - like how much time in ClojureScript vs. advanced compilation. Also the compiler version matters - 1.7.170 is what you want to use. Otherwise you may need :recompile-dependents false.


Cool. I did not know about :compiler-stats. I'll check it out.




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: