cider-nrepl
cider-nrepl copied to clipboard
Avoid a few compile-time computations?
Expected behavior
CIDER starts up as fast as possible, particularly in face of large projects/classpaths.
Actual behavior
Some computations are performed at compile time:
-
https://github.com/clojure-emacs/cider-nrepl/blob/6d3934eb665574af891e81ef5c11cf9c2b4e1d65/src/cider/nrepl/middleware/stacktrace.clj#L125
-
https://github.com/clojure-emacs/cider-nrepl/blob/6d3934eb665574af891e81ef5c11cf9c2b4e1d65/src/cider/nrepl/middleware/track_state.clj#L152
Proposal
Wrapping those under a delay
as other parts of the codebase do. Might be considered a breaking change though.
cider-nrepl version
master
I thinking delay
ing those shouldn't be an issue. I have to admit I rarely think about such micro-optimizations, as I hope most people don't get to start/restart CIDER/Calva/whatever often. :-)