The loop becomes increasingly slower

Hi,

The loop becomes increasingly slower when running a large number of iterations

exp : the 1st loop need 2 mins for finish, 2nd loop need 3 mins , 3rd loop need 4 mins….

I think the grasshopper memory is getting bigger and bigger ( I guess so)
Can we clear grasshopper memory by ghpython, I want clear it while running the loop.

Or another best way ?

Thank you

Hi, just because IronPython and CPython are memory managed, it does not mean you cannot generate a memory leak on your own. Also an iterative performance drop is not necessarily only a memory problem. In the majority of the cases, its your code. Could you share it? (Put ```py before the code so that it is formated)