Reputation: 58786
I am seeing some serious slowdowns in "some" parts of a Clojure application. Does anyone have any real world tips as to how they have done performance tuning on a clojure application?
Upvotes: 29
Views: 4353
Reputation: 106351
My personal tips:
Doing all the above should get pretty good performance out of Clojure code - with careful tuning I've usually been able to get reasonably near to pure Java performance, which is pretty impressive for a dynamic language!
Upvotes: 64
Reputation: 44706
You can use JVisualVM to do profiling of Clojure code (see JVisualVM and Clojure for an example). This should at least point you in the right direction of the slow code.
Upvotes: 6
Reputation: 2481
This question covers profiling with Clojure: Profiling tool for Clojure?
I'm sure you'll find some good tips there.
Then straight from the horse's mouth: http://clojure.org/getting_started#Getting%20Started-Profiling
Upvotes: 5