David, thanks for your suggestions. I copied your code and tested it out, but on my machine it takes 230 milliseconds while the java version takes about 3.
If it's not too much trouble, how long does the java implementation take on your machine? sincerely, --Robert McIntyre On Fri, Jan 28, 2011 at 2:11 PM, David Nolen <dnolen.li...@gmail.com> wrote: > On Fri, Jan 28, 2011 at 2:01 PM, Aaron Cohen <aa...@assonance.org> wrote: >> >> On Fri, Jan 28, 2011 at 1:55 PM, David Nolen <dnolen.li...@gmail.com> >> wrote: >> > As a comparison, the following accomplishes the same thing in 1.3.0. >> > (ns test) >> > (set! *unchecked-math* true) >> > (set! *warn-on-reflection* true) >> > (def buffer-size 1920000) >> > (def array (byte-array buffer-size)) >> > (defn java-like [^bytes cpuArray] >> > (loop [i (int 0)] >> >> Is this hint still necessary on 1.3.0? > > The int cast on 0 was an oversight on my part. It's not necessary. > David > > -- > 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 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