使用Raspberry Pi上的Leiningen改进Clojure REPL的启动时间 [英] Improving startup time of Clojure REPL with Leiningen on the Raspberry Pi

查看:217
本文介绍了使用Raspberry Pi上的Leiningen改进Clojure REPL的启动时间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Rasperry Pi 512 MB版本(2012年底),并安装了 Java SE 8 for ARM的开发人员预览< a>就可以了。当我使用Leiningen创建一个新的Clojure项目并通过执行 lein repl 启动nREPL时,它需要两分钟(大约130 - 140秒),直到REPL已经

I got a Rasperry Pi 512 MB version (late 2012) and installed the Developer Preview of Java SE 8 for ARM on it. When I create a new Clojure project with Leiningen and launch the nREPL by doing lein repl it takes a bit more than two minutes (roughly 130 - 140 seconds) until the REPL has been initialized and can be used.

直接启动JAR文件 java -jar clojure-1.4.0 / clojure-1.4.0 REPL在25秒内启动。

When launching the JAR file directly java -jar clojure-1.4.0/clojure-1.4.0 the REPL starts up in 25s.

我使用快速10级SD卡(SanDisk Extreme,速度高达30 MB /秒)。如何使用Leiningen和nRepl之间的区别vs启动JAR文件是如此之大?

I'm using fast class 10 SD cards (SanDisk Extreme with up to 30 MB/s). How come that the difference between using Leiningen with nRepl vs launching the JAR file is so big? What could be done to improve the startup time with Leiningen for the Raspberry Pi?

推荐答案

还可以尝试 grenchman :在nREPL上快速调用Clojure代码。

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

这篇关于使用Raspberry Pi上的Leiningen改进Clojure REPL的启动时间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆