Why is leiningen so slow when it starts?

前端 未结 5 1279
余生分开走
余生分开走 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

    Leiningen starts two JVMs, and hooks them together. It's got to load extra stuff to do that. The prompt you type into is a different process from the Clojure process that evaluates your code. Leiningen also has to parse your project file and make sure that everything is set up as it requires, or go and get what's needed from the web if there's anything missing in your maven configuration directory. In the Leiningen sample project file there are some options that can speed up things a little bit, if you read through it carefully. I think that Leiningen having slow startup is just one of the facts of life right now.

    More relevant information:

    Improving startup time of Clojure REPL with Leiningen on the Raspberry Pi

    Faster

提交回复
热议问题