Why is leiningen so slow when it starts?

前端 未结 5 1307
余生分开走
余生分开走 2021-02-13 14:34

I\'m using lein repl to execute clojure repl in console. When I run it, it takes over 15 seconds. When I run java -cp clojure-1.6.0.jar clo

5条回答
  •  执笔经年
    2021-02-13 15:02

    In my case it was the cider-nrepl plug-in that significantly contributed to the load time.

    Quick unscientifical research with jvisualvm showed that good deal of time goes into loading & evaluating the files (0.10-snapshot is not AOT-ed) and there was also init logic that scans the classpath.

    Using fast trampolines halved the start-up time.

    The jvm plays no bigger role than the OS or the file system in my opinion. It's all about the code being loaded.

提交回复
热议问题