Fork me on GitHub
#cider
<
2017-10-29
>
puzzler03:10:43

When my cider repl hits about 8000 lines of output, the interaction slows to a crawl. Even if I enter a simple expression at the prompt like "1", it takes a minute to return the output. Is there a trick to preventing this slowdown?

puzzler04:10:57

Actually, it seems to slow down as soon as something large is printed.

gonewest81805:10:58

I saw slowdowns in the repl with very long lines of output, but in your emacs init.el you can (setq cider-repl-use-pretty-printing ‘t) and then you won’t have those excessively long lines.

puzzler05:10:22

Does that variable cause it to truncate it, or just not show it?

gonewest81806:10:28

It causes the output to be pretty-printed, which results in output broken into many short lines instead of one massive line. In my experience that helps a lot.

gonewest81806:10:12

You can also look at the clojure variables *print-length* and *print-level* to control output in the repl.

agigao11:10:37

Hey guys, CIDER pulls up REPL nicely in regular Emacs gui, but does seem to have an issue in iTerm/Terminal, it’s just stuck with “Starting REPL message”. Any ideas?