On Mar 4, 7:23 am, Stuart Sierra <the.stuart.sie...@gmail.com> wrote:
> On Mar 1, 5:33 pm, John Lawrence Aspden <aspd...@googlemail.com>
> wrote:
>
> > Is the reason the Clojure version is slow that recursive calls to draw-
> > tree are boxing and unboxing primitive types?
>
> Recursive calls, like all Clojure function calls, force boxing.  This
> may or may not have anything to do with the performance difference you
> are seeing.  True primitive support for function arguments is planned
> for a future release.
>
> -SS

Note also that loop/recur will preserve primitives.

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