Closed jebob closed 4 years ago
If atexit knows what "self" is here, it stores the entire GDX object until the python instance ends.
This works as long as _H doesn't change during execution (this is currently guaranteed due to the lack of a setter for H).
Running the first snippet on 78 doesn't have a RAM usage increasing over time if this change is applied.
Closes #78
Thanks, @jebob -- nice catch!
If atexit knows what "self" is here, it stores the entire GDX object until the python instance ends.
This works as long as _H doesn't change during execution (this is currently guaranteed due to the lack of a setter for H).
Running the first snippet on 78 doesn't have a RAM usage increasing over time if this change is applied.
Closes #78