[Not really about enhanced primitive support - more about optimization on the jvm.]
On Tue, 22 Jun 2010 01:47:26 -0400 David Nolen <dnolen.li...@gmail.com> wrote: > Yet consider this, If I'm writing OpenGL code in Penumbra I will have quite > a bit of code that amounts to the following: > > ; 630 msecs > (dotimes [_ 10] > (time > (dotimes [_ 1000000000] > (+ 1 2)))) > > Yes. With Rich's primitive work we can get to *1 billion arithmetic > operations* in < 2/3 of a second on commodity hardware. Which begs the question - why are you mucking about with SISD algorithms if you need that kind of thing to be fast? IIUC, recent versions of the JVM can access the SIMD instructions that have been available on most commodity hardware for the last couple of years. Why aren't you trying to get to those to get a serious performance boost? Better yet, given that you're using OpenGL and presumably have real graphics hardware available, why aren't you trying to push this stuff out to the vector processor on the GPU where it will really fly? <mike -- Mike Meyer <m...@mired.org> http://www.mired.org/consulting.html Independent Network/Unix/Perforce consultant, email for more information. O< ascii ribbon campaign - stop html mail - www.asciiribbon.org -- 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