On Tue, Jan 13, 2009 at 2:23 PM, CuppoJava <patrickli_2...@hotmail.com> 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 clojure@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---