On Fri, Jul 3, 2009 at 9:29 AM, igorrumiha <igorrum...@gmail.com> wrote:
> > On Jul 2, 7:13 pm, Nicolas Oury <nicolas.o...@gmail.com> wrote: > > You can also try to replace the arithmetic by unchecked arithmetic. (Is it > > correct from the point of view of the semantic of the VM you are > > implementing?). > > I didn't get to that yet because my profiling shows that the amount of > time spent getting values from an array (even when using getDouble) > surpasses by far the time spent in any other operation. Of course, my > understanding of the JVM profiler logs may be wrong. > Interesting. Maybe I'm crazy, but when running java -server, replacing vectors/assoc with arrays/aset slowed my project down from 4000 iterations/second to 100! Similarly, removing multimethods for each instruction and loop/recur to churn through them and replacing with one big fn generated up front resulted in a massive slowdown. I haven't profiled yet, but I plan to do so because I'm so surprised by the results. Shawn --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---