4 ms·
That's Clojure, it compiles .clj files on demand into jvm .class when you require them. Here probably his user.clj is loading the whole application. You can do
by dustingetz 6y ago
That's Clojure, it compiles .clj files on demand into jvm .class when you require them. Here probably his user.clj is loading the whole application. You can do some dynamic things to delay the loading/compiling until after your REPL starts, so that you get a repl in 1-2 seconds. https://gist.github.com/dustingetz/a16847701c5ad4a23b304881e2a209a0 https://gist.github.com/dustingetz/a16847701c5ad4a23b304881e... In production you would ahead-of-time compile.
- john-shaffer 6y agoIt's also pretty common to leave a REPL running for days or months in development.
- dkersten 6y agoYeah, I typically don't close my REPL unless I reboot. Which happens maybe once or twice a month max.
- TacticalCoder 6y agoNice trick! I also shaved 35% of my "time to CIDER REPL" by passing a few parameters to the JVM (-client, -Xverify:none, plus two tieredcompilation-related settings I copy/pasted).