This shows a leak:
i = 0
for P in Posets(8):
if i % 1000 == 0:
gc.collect()
print get_memory_usage()
i += 1
_ = P.dimension()To compare, width() and height() does not seem to leak. -- Jori Mäntysalo
This shows a leak:
i = 0
for P in Posets(8):
if i % 1000 == 0:
gc.collect()
print get_memory_usage()
i += 1
_ = P.dimension()To compare, width() and height() does not seem to leak. -- Jori Mäntysalo