Clojure code is typically fast enough, written simply. Clojure can be about as fast as Java by adding type signatures and/or adopting some well known approaches (e.g. Transducers, transients)
For real applications, Clojure algorithms are as fast or faster than Java algorithms. On Sun, Oct 15, 2017 at 11:42 PM Mike <145...@gmail.com> wrote: > Hello! > > I took an example from https://clojure.org/references/refs (select two > random positions in two random vectors and swap them, in a transaction.) > A java version is faster in 10 times (in attach), and threre is no human > brain complexity in concurrency in java version. > > Why clojure version so slow? > > Mike. > > -- > You received this message because you are subscribed to the Google > Groups "Clojure" group. > To post to this group, send email to clojure@googlegroups.com > Note that posts from new members are moderated - please be patient with > your first post. > To unsubscribe from this group, send email to > clojure+unsubscr...@googlegroups.com > 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 clojure+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- Howard M. Lewis Ship Senior Mobile Developer at Walmart Labs Creator of Apache Tapestry (971) 678-5210 http://howardlewisship.com @hlship -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com 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 clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.