On Tue, Jan 13, 2009 at 2:23 PM, CuppoJava <[email protected]> wrote:
>
> Do struct-maps also have boxing and unboxing overhead? Or does the JVM
> optimize that away?

Clojure collections currently store Objects, so they'll be boxed.

To store primitive values I think you'll have to use a Java array (but
only if all the primitives are the same type, of course) or create a
new Java class (gen-interface+proxy, gen-class, or .java).

If the Java array is an option for you, you can build up an API of
functions to keep things named and immutable.

--Chouser

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to