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?
Any chance you’re using user.clj and latest jdk (8u202+ or 11.0.2)?
There is a known Java perf regression with these that has a dramatic impact when loading user.clj
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
Sorry 8u201 was bad too
I’d say it’s almost certain that’s it