Hi Sergey, Yes, there's two places I fell back to Java. One was in the primitive math operations when using two arrays (in pink.util, for sum, mul, div, and sub). I found it was a little slower over a million runs using the Clojure code, but I'm still debating whether to return it back and see if I can find ways to get the Clojure code closer to the Java performance.
The other area was for writing out from doubles to shorts. I found that doing the checks and coercions to doubles that I couldn't find a way to do it in Clojure without a lot of auto-boxing happening of the intermediary shorts. That one I still haven't found any way around, but luckily it's only a concern for that one specific part of the program and everything else is pretty much calculations with longs/doubles. Hope that's useful! steven On Wednesday, November 26, 2014 3:57:21 AM UTC-5, Sergey Didenko wrote: > > Thank you, > > It was interesting to read your experience on this kind of optimization. > > As I see you fall back to using raw Java code a few times. > -- 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 --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
