Reputation: 58786
I am developing a Clojure program and I use
(:use modulename :reload)
: everywhere (in about 100 clj files). This is causing everything to get slower and slower all the time. Has anyone else experienced this and if so how did you get around it?
Upvotes: 3
Views: 190
Reputation: 91982
The solution is easy: don't use :reload
in your ns
forms. It's wrong a bazillion times out of ten: reload
is intended for REPL use, not for namespace declarations. How on earth can namespace foo
know that namespace bar
is loaded already and needs to reload in order for foo
to work properly? If your setup is really so labyrinthine that this makes sense, you probably have bigger problems than your startup time.
Upvotes: 9