本文介绍了为什么leiningen这么慢,当它开始?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 我使用 lein repl 在控制台中执行clojure repl。 当我运行它,需要超过15秒。 当我运行 java -cp clojure-1.6.0.jar clojure.main 时,只需要几秒钟。 为什么 lein repl 这么慢? W:MacBookAir O / S:Mac OS 10.9 Mavericks CPU:i7 MEM:8GB 解决方案 Leiningen启动两个JVM,并将它们挂接在一起。它需要加载额外的东西做到这一点。输入的提示是与评估代码的Clojure进程不同的进程。 Leiningen还必须解析你的项目文件,并确保一切都按照需要设置,或者去,如果你的maven配置目录中有什么缺失,从网上得到什么。在 Leiningen示例项目文件中,有一些选项可以加快一些功能,如果你仔细阅读它。 更多相关信息: p> 改进Clojure REPL的启动时间在树莓派上使用Leiningen 速度更快 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 clojure.main, it takes just a few seconds.Why is lein repl so slow? Are there anyways to make it faster?My env:H/W: MacBookAirO/S: Mac OS 10.9 MavericksCPU: i7MEM: 8GB 解决方案 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 PiFaster 这篇关于为什么leiningen这么慢,当它开始?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!
09-13 00:08