This may be a throw a comment, but I was running hprof against this
SWT gui application that I have.  I have about 10,000 lines of clojure
code, so I don't know where to reduce my memory.  But I thought these
stats were interesting on the number of Clojure objects created.
Right now, the apps is eating 20MB of heap memory and here are the top
objects created:

Does anyone know when a LeafNode would be created?  Or some of those
other objects.

26625 instances of class clojure.lang.PersistentHashMap$LeafNode
8938 instances of class clojure.lang.PersistentHashMap$INode[]
8898 instances of class clojure.lang.PersistentHashMap
$BitmapIndexedNode
6009 instances of class clojure.lang.Symbol
2081 instances of class clojure.lang.PersistentArrayMap
2021 instances of class clojure.lang.PersistentList
1487 instances of class clojure.lang.Var
1426 instances of class org.eclipse.swt.graphics.TextLayout$StyleItem
1350 instances of class org.eclipse.swt.internal.win32.SCRIPT_ANALYSIS
1350 instances of class org.eclipse.swt.internal.win32.SCRIPT_STATE
960 instances of class clojure.lang.LazilyPersistentVector
574 instances of class clojure.lang.DynamicClassLoader
495 instances of class clojure.lang.PersistentVector
481 instances of class clojure.lang.APersistentVector$Seq
169 instances of class clojure.lang.Keyword
147 instances of class javax.management.MBeanAttributeInfo
120 instances of class clojure.lang.PersistentHashMap
--~--~---------~--~----~------------~-------~--~----~
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