Fork me on GitHub
#cursive
<
2021-06-22
>
caleb.macdonaldblack00:06:03

Any ideas why “requiring” my namespaces is so slow for me in the repl? using (require '[some.namespace]) can take around 800ms for a namespace that isn’t that big and doesn’t require any other files other than external libs

cfleming01:06:58

That’s probably a question for #clojure, unless it’s very slow in Cursive and fast in a normal REPL.

👍 4
caleb.macdonaldblack00:06:54

starting my whole project in the REPL takes over a minute

Alex Miller (Clojure team)02:06:20

one thing you can try is to add :verbose true to your require - that will dump each ns as it loads. if one namespace is particularly slow (mostly commonly due to heavy macro usage), you can often just spot it by eyeball

bnstvn11:06:57

in the Cursive REPL, whenever a huge datastructure is printed,the keybinding for “Interrupt Current Evaluation” doesn’t work for me. The keybinding does work in the eval phase, and with mouse click I can stop the printing as well. anybody have seen this?