Hi Jori, On 2014-11-26, Jori Mantysalo <[email protected]> wrote: > m=0 > for P in Posets(n): > m=max(m, f(P)) > > Now, it seems that this eats memory. I guess that is because of > UniqueRepresentation that Poset inherits.
UniqueRepresentation uses a weak value dictionary. Hence, when you loop over Posets(n), each poset P should become collectable by the cyclic garbage collector as soon as the variable P points to something else. If it is not collectable by Python's cyclic garbage collector, then there is a bug. Can you open a trac ticket for it, putting me as Cc? Best regards, Simon -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/d/optout.
