Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to stop evaluation of a large repl result causing slime with swank clojure to slow down?

Whenever I evaluate a large value that prints a large datastructure into the repl, slime becomes very slow from then on. Typing anything subsequently into the repl shows a delay in values appearing in the repl and further evaluation of any clojure code is slow. The only thing that seems to work is restarting the repl which doesn't seem like a solution.

An simple example of a large datastructure is slurping a file and then printing it (this could even be a fairly small file).

This seems to happen both in Win7 and Ubuntu.

Any ideas on how to stop this and why it is happening would be appreciated!

like image 499
toofarsideways Avatar asked Dec 12 '11 14:12

toofarsideways


1 Answers

When I've run into this issue (which happens often), I simply clear the repl buffer. You can do this with C-c M-o, or by using "Clear Buffer" under the "REPL" menu item. This doesn't restart the repl, and command history and the like are unaffected.

like image 140
grim_radical Avatar answered Oct 15 '22 23:10

grim_radical