> > However, unless you're storing a strong reference to the poset, you > > don't run into memory problems as the UniqueRepresentation is a weak > > cache. So if you are running out of memory, there is a leak somewhere. > > Well... About always when I want to compute something longer than for > 4..24 hours, I will be out of memory. > > This is an artificial example to show what I mean. Let this run for > several minutes: > > P7 = Posets(7).list() > > i = 0 > while True: > for P in P7: > if i%1000 == 0: > print i, get_memory_usage() > M = P.width() > i += 1 > > Compare with P.height() that does not eat memory. > > That's strange. My guess is that the graphs constructed by P.width() are either being nailed in memory (which is what I strongly suspect given that height() doesn't leak) or keep the poset alive.
Best, Travis -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To post to this group, send email to sage-devel@googlegroups.com. Visit this group at http://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.