Fork me on GitHub

Having an issue where lein run is taking me 3m30s and taking my coworkers only 30s


Every chance at parity has been attempted. I actually have a newer/faster system than anyone else


It mostly seems to hang at what I'd call namespace collisions (.e.g WARNING: name already refers to: #'clojure.core/name in namespace:...), at least that's what's printing while it takes the longest, which I'd guess is during compile


could it be that you have many plugins/dependencies in your .lein/profiles.clj?

Alex Miller (Clojure team)11:04:56

Any chance you’re using user.clj and latest jdk (8u202+ or 11.0.2)?

Alex Miller (Clojure team)11:04:30

There is a known Java perf regression with these that has a dramatic impact when loading user.clj

Alex Miller (Clojure team)11:04:18

Clojure 1.10.1-beta2 has a mitigation fix in it we are testing


.lein/profiles.clj just has env vars basically.


@alexmiller let me take a look at jdk version, that might be it


we are using a user.clj


Looks like I'm on java 8u201 though:

$ java -version
java version "1.8.0_201"
Java(TM) SE Runtime Environment (build 1.8.0_201-b09)


So I downgraded my jdk to 8u192 and it fixed my build time

👍 4
Alex Miller (Clojure team)23:04:32

Sorry 8u201 was bad too

Alex Miller (Clojure team)23:04:50

I’d say it’s almost certain that’s it

👍 4