This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-09-25
Channels
- # bangalore-clj (1)
- # beginners (13)
- # boot (163)
- # cljsrn (23)
- # clojure (70)
- # clojure-czech (1)
- # clojure-russia (6)
- # clojure-spec (8)
- # clojurescript (47)
- # cloverage (16)
- # cursive (2)
- # editors (1)
- # garden (2)
- # lein-figwheel (1)
- # om (30)
- # om-next (2)
- # perun (2)
- # planck (23)
- # rdf (4)
- # reagent (1)
- # specter (2)
- # untangled (8)
- # vim (7)
hey guys - I have a very first-world problem: any ideas why building a production release takes 2-3 minutes and any ways to speed it up? : ) Using RN + re-natal + Om.next - everything works otherwise!
well advanced compilation takes more time, but I’m actually not sure if re-natal use it for production build. Check project.clj cljsbuild optimisation level
I used to do :optimizations :advanced, but couldn't get source maps to work in production, so I dropped it
because when a crash happens in production I am not good enough (yet) to figure out what does "h.q" means in the Google Closure code 😛
@raspasov the rn packager is simply slow
it also has to deal with more code than usual as it packages the whole cljs output
@pesterhazy: I figured - was just wondering if there's any way to speed it up; buy faster CPU? 😁
Actually prod build don't bother me much
How often do you do those?
But longer dev build slow down your feedback cycle
Screws up your interactive devenv
@pesterhazy: def not a deal breaker, but sometimes I want to test on multiple devices things like animation performance and the only way to truly gauge that is do a prod build, so I might do it a few times per day
It's like 2-3 min for me, after about 40-50 sec of CLJS compilation with :simple, so the whole process becomes like 3.5 minutes
wait until the packager starts randomly running of memory!
wouldn’t help much but I noticed that :optimizations :whitespace
is faster comparing with :simple
like 28s vs 38s on my app
also :parallel-build true
may help, although it never gave any time boosts on any of my projects 😞