Hi Ron,

I've profiled a 20k line Clojure application and have never seen anything like 
what you seem to be suggesting. It seems (though you've not been very clear) 
that you suspect that persistent collections may be holding references to nodes 
longer than necessary. That is, longer than a mutable collection would. My 
reading of the implementation suggests that this is not the case. Do you have 
any specific evidence or is this just a hunch? Any 'modifications' to a 
persistent collection return a new collection which may or may not share 
structure with the previous one. If you don't hold a reference to the previous 
version the collection and the unshared nodes become eligible for garbage 
collection. Am I missing something here?

Paudi

On 10 Feb 2012, at 15:56, Armando Blancas wrote:

> Not sure if I understand your concern since I wonder how's that
> different from, say, some ephemeral Java collection that happens to be
> around after a given generational threshold and then becomes
> unreachable.
> 
> On Feb 10, 4:01 am, pron <ron.press...@gmail.com> wrote:
>> And have you profiled the objects making it to the old generation
>> (requiring/causing the full GC)? Are persistent collection nodes a
>> significant part of those?
> 
> -- 
> 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 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