I have grasshopper definition with a large python component inside. Every time I run the script, the execution becomes slower. The slowing down seems to be fairly linear - see graph below.
After a Rhino restart everything is ‘fast’ again. I monitored the CPU usage of each run, but could not detect significant differences between them. I have this problem both with single- and multithreaded versions of my code.
I found a thread with a similar problem description, but no apparent solution besides a restart of Rhino (Python scripts with ghpython components slow down grasshopper - Grasshopper).
Is there anything I can do to prevent this behaviour, or can someone explain what may cause this slow down with repeated executions?