I have seen (and I keep seeing) a ton of Java code that performs poorly. Empirically, it's equally easy to write a slow Java app. You always need a discerning programmer to get good performance from any language/tool.
Numbers like 1/4 or 1/10 can be better discussed in presence of the use-cases and perf test cases. Most of the problems you listed can be mitigated by `-server` JIT, avoiding reflection, transients, loop-recur, arrays, perf libraries and some Java code. Shantanu On Saturday, 1 March 2014 10:32:26 UTC+5:30, bob wrote: > > Hi, > > Can I ask a newbie question about clojure performance? > > What make clojure performance slow than java?, it seems clojure has the > 1/4 performance compared to java in general, according to tests, some > cases it might be 1/10. the reasons I can think out are > > - the byte code is not efficient sometimes > - the byte code might not enjoy the jvm optimization > - the reflection > - the immutable data structure > - the abstract interface design > > The abstract interface like seq offers its power, but it is easy to drop > in the performance trap. > > And it seems to me that it is easy to write a slow clojure program, I know > the efficiency of code depends on coder, you can write the code faster than > java sometimes,but need to know a lot of deep thing and tricky, and > clojure is not the funny clojure any more. > > > Thanks > > -- 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/groups/opt_out.