Fork me on GitHub

my repl in spacemacs is rather slow and laggy, is this a common observation? This particularly happens when the repl has printed some large output. Is there a way to speed this up like turn off autocompletion for the repl?


which repl are you talking about?


I find that happens too. Usually I just do cider-repl-clear-buffer (`SPC m s c`) but that doesn’t really help if you want to keep the output


You can limit the output in the REPL to x many lines (sorry, on a slow network, so havent googled it)


i think both of these are useful suggestions, thanks


there was also a similar thread further up in the chat about this problem FWIW


assuming you are talking about a clj or cljs repl @michaellindon - if you find something i would love to know about it too 😬


@petr @eggsyntax there is a paste-transient-state in the develop branch of Spacemacs that allows you to traverse the kill ring. This was poping up a little menu when ever you pasted, allowing you to navigate through the kill ring with p and P


@naomarik I do use yasnippets, but then I tend to tab out to the end $0 before doing anything that benefits from smartparens. I have a couple of posts on how I use it, although they don't address this specific issue directly


@michaellindon there are loads of things that you can try that might speed it up, but the best strategy is usually to start with the emacs profiler. It's surprisingly easy to use, and can often let you quickly narrow down to the thing that's causing the problem. Pretty much all the info you need is on this short page:


Also, I suppose you might get help on #cider @michaellindon.


Thanks for all the suggestions, I'm experimenting a few things this morning


So far, turning off company mode for the repl (clojure) has helped in addition to @shan's suggestion of clearing the buffer with (SPC m s c), things typically slow down when there is a lot of output for me


for example, if you generate 10000 random uniforms and the repl prints them out, entering commands and getting output becomes a lot slower after that


I generated an even larger number and I never got the prompt back to enter the next input. I cleared the buffer, the prompt came back immediately


@michaellindon quick & dirty way to catch whatever it is when that happens: M-x toggle-debug-on-quit Then repro the issue so you don't have the prompt, hit C-g to interrupt, and boom, you'll get the call stack for what's happening at the point you interrupt.


Awesome, thanks :)


@jr0cket yeah looks like some incompatibility between smartparens and yasnippet. i forced enabled it and it throws in extraneous characters when you expand a snippet in some cases.