It's slow because it has to use reflection to determine the type.
Use (set! *warn-on-reflection* true) and you'll see the warning.

Try something like this and you'll see significantly faster results:

(let [#^testType t (new testType 1 2 3)]
  (time (dotimes [_ 10000000] (.a t)))

Harvey
-- 
"You're keeping me alive because you don't know DOS?"
Izzy, Prophecy II

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to