saintlyRook
saintlyRook

Reputation: 495

Is Clojure / Java interop slow?

Is calling Java from Clojure slow in comparison to pure Clojure code? And is this because there is always reflection under the hood? Thanks.

Upvotes: 1

Views: 159

Answers (1)

Joost Diepenmaat
Joost Diepenmaat

Reputation: 17761

Not really. You can generally write java interop code in clojure that is exactly as fast as equivalent java code, including type hints to eliminate reflection. Generally that means its more low level, much more verbose and faster than idiomatic clojure.

Upvotes: 2

Related Questions