Very slow Clojurescript build

189 views
Skip to first unread message

Harri Ohra-aho

unread,
Apr 21, 2015, 11:17:46 AM4/21/15
to clojur...@googlegroups.com
Hi,

Our project's build has recently got extremely slow if started from a clean state. The build time currently is close to two hours.

The build always seems to hang here:
Analyzing jar:file:/Users/ohra/.m2/repository/reagent/reagent/0.5.0/reagent0.5.0.jar!/reagent/debug.cljs
Compiling resources/public/trex/js/out/reagent/debug.cljs

If I take a thread dump at this point these lines always appear:
...
at cljs.util$topo_sort.invoke(util.clj:146)
at cljs.analyzer$ns_dependents.invoke(analyzer.clj:563)

If the build is killed at this point and started again it completes normally in a minute or so. I tried leaving out cljsbuild but the build also hangs then.

It's probably worth noting that reagent/debug.cljs is a totally empty namespace. Is there something strange happening with the dependency analysis or what might be the problem?

Harri


David Nolen

unread,
Apr 21, 2015, 11:55:45 AM4/21/15
to clojur...@googlegroups.com
Seems like you have enough information to try and put together a minimal reproducible case. That would be helpful.

David


Harri


--
Note that posts from new members are moderated - please be patient with your first post.
---
You received this message because you are subscribed to the Google Groups "ClojureScript" group.
To unsubscribe from this group and stop receiving emails from it, send an email to clojurescrip...@googlegroups.com.
To post to this group, send email to clojur...@googlegroups.com.
Visit this group at http://groups.google.com/group/clojurescript.

Juan Patten

unread,
Oct 19, 2015, 6:14:48 PM10/19/15
to ClojureScript
Hi Harri - did you ever get this figured out? I'm seeing a similar issue.

-- J.R.

David Nolen

unread,
Oct 19, 2015, 6:16:13 PM10/19/15
to clojur...@googlegroups.com
There's a known bug with topological sorting. Use :recompile-dependents false in your compiler config to disable the source of the issue. There's already a patch that fixes this issue it just needs more testing.

David

Juan Patten

unread,
Oct 19, 2015, 6:27:37 PM10/19/15
to clojur...@googlegroups.com
Hey David - that worked. Thanks very much!

Thanks also for all you do for the CLJS world :)

-- J.R.
You received this message because you are subscribed to a topic in the Google Groups "ClojureScript" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/clojurescript/odrJlVsYJ14/unsubscribe.
To unsubscribe from this group and all its topics, send an email to clojurescrip...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages