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

牧云@^-^@ 提交于 2019-12-03 23:18:42

Also try grenchman: Fast invocation of Clojure code over nREPL.

You can try drip which wraps the java command and prepare a fresh jvm waiting in the background.

Adam Gent

It seems the slow startup of clojure in general is the loading of core and various other things discussed here:

http://blog.ndk.io/solving-clojure-boot-time.html

Actually the Leiningen starts in it's own JVM and then nests the project's vm inside it.
Then it checks deps, figures out the changes and so on.

You can avoid vm nesting with the trampoline task of lein like so:
lein trampoline repl

But this command requires the lein to be called in a project directory

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!