Hi,
I am trying to understand the difference in memory usage between a 
defrecord and a hashmap in Clojure 1.6. (I am a Clojure and a Java newbie).

I've read in Joy of Clojure that a record consumes less memory than a 
hash-map. I've also read in prismatic eng-practices data representation 
guide 
<https://github.com/Prismatic/eng-practices/blob/master/clojure/20130926-data-representation.md>
 that 
the memory usage of a record is compact.

Is there any data to highlight these statements? I tried using 
memory-measurer <https://code.google.com/p/memory-measurer/> to figure that 
out but I was unsuccessful in finding the difference.

Thanks.


-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to