Ask Your Question

Giove's profile - activity

2020-05-08 00:56:05 +0200 received badge  Supporter (source)
2019-08-27 11:30:34 +0200 received badge  Student (source)
2019-07-23 14:20:45 +0200 asked a question Memory leak in Polyhedron?

If I run the following code:

import gc

while True:
    P = Polyhedron([[1,0,0,0], [0,1,0,0], [0,0,1,0], [0,0,0,1]])
    faces = P.faces(3)
    del P, faces
    print "memory usage: " + str(get_memory_usage()) + ", gc: " + str(gc.collect())

the memory usage keeps increasing. Do you know what is the cause and how to avoid this problem?