Reduces the used memory by the GC and free the heap to the OS.
To avoid calling this too often the struct have a timer to ensure it is callled at most ones every minute.
TODO: maybe add functionality to call it more often when above e.g. 50% memory usage?
Start a background thread to do the work.
See Implementation
Reduces the used memory by the GC and free the heap to the OS.
To avoid calling this too often the struct have a timer to ensure it is callled at most ones every minute.
TODO: maybe add functionality to call it more often when above e.g. 50% memory usage?