Wednesday, November 18, 2015

CIDER slows down Leiningen startup. Here is how to fix that.

Official CIDER documentation recommends putting CIDER into user's profile.
{:user {:plugins [[cider/cider-nrepl "0.9.1"]]}}

If you don't need to have it available all the time, but only when you run lein repl, you can move it into :repl profile.
{:repl {:plugins [[cider/cider-nrepl "0.9.1"]]}}
After this, startup time of non-REPL tasks will be much faster (e.g. 2 seconds vs 8 seconds for `lein help` on my machine).


  1. Wow. I did this and it cut my lein start time from 9.4s to 5.7s.


  2. So after doing this, cider-jack-in inside emacs no longer works :-(. I assumed that it would use the :repl profile, but maybe it doesn't?

    1. cider-jack-in works fine on my machine. Are you sure that You have correct stuff in ~/.lein/profiles.clj? Can You post it somewhere? It should (at least) contain that one line mentioned in my post.

  3. Didn't know about the `:repl` profile. I'll update the docs.

  4. Wow! This is the coolest! Thank you so much.

  5. Dating back to the late 1800s and with a history rooted within the California Gold Rush, “slots” use the ideas of chance and likelihood to beguile players and create a profit for house owners. The design of slot machines has developed from mobile mechanical elements to principally electronic parts over the course of the last century, however their allure and attraction stay strong. With the arrival of pc servers and stay streaming of knowledge, slot machines are poised to intrigue and befuddle model new} generation of gamblers hoping to hit the jackpot. Some sorts of slot machines may be linked collectively in a setup typically known as as|often identified as} a "community" game. The most elementary form of this setup includes progressive jackpots that are be} shared between the 더킹카지노 bank of machines, however may include multiplayer bonuses and different features.