On Sun, Aug 16, 2009 at 6:50 AM, Nicolas Oury <nicolas.o...@gmail.com>wrote:

>
> Dear all,
>
>
> The good news: I have a version of the N-body benchmark that goes "as
> fast as java".
>
> The bad news: I am cheating a little bit...


You're only cheating if you care about the fantasy world that is
microbenchmarks. I think few Clojurians do. Your solution seems like a
justified and proper one if you ever need to implement n-body in a shipping
software application.

So to sum up how to have micro-benchmarks as fast as java:
> - manual inlining. There seems to have a cost to calling a function.
> Maybe the new code generator will improve that.


You don't need to manually inline. Convert your function into a macro.

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to