On Aug 5, 2009, at 5:00 PM, Joe Van Dyk wrote:

>
> On Aug 4, 8:02 am, Mark Addleman <mark_addle...@bigfoot.com> wrote:
>> I think there may be a somewhat straightforward solution to improving
>> Clojure's performance when passing primitives between functions.
>> Here's my understanding of the problem:  The IFn interface is a  
>> series
>> of invoke method signatures that take a number of java.lang.Objects  
>> as
>> parameters and returns a java.lang.Object.  Primitives can't be  
>> passed
>> this way and it would be a silly explosion of code to create the
>> methods signatures in IFn that included primitives.  The performance
>> characteristcs of "boxing" primitives relies on the JVM's performance
>> of allocating and deallocating objects.
>
> What's meant by "boxing"?

See: http://en.wikipedia.org/wiki/Autoboxing#Autoboxing

- Chas

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