This creates the heap_size_hint_in_bytes parameter which is forwarded to SymbolicRegression.jl. This allows the user to tell spawned Julia processes how much memory they can use before they should start aggressively garbage collecting (to avoid memory errors).
The default heap_size_hint_in_bytes should be enough as it is simply the current memory (on a single node) divided by the number of processes. However if you want to give processes more memory (for many node jobs) you might want specify this manually.
This PR also does some unrelated cleanup of the typing hints.
Fixes #490 by @paulomontero and @eelregit.
This creates the
heap_size_hint_in_bytes
parameter which is forwarded to SymbolicRegression.jl. This allows the user to tell spawned Julia processes how much memory they can use before they should start aggressively garbage collecting (to avoid memory errors).The default
heap_size_hint_in_bytes
should be enough as it is simply the current memory (on a single node) divided by the number of processes. However if you want to give processes more memory (for many node jobs) you might want specify this manually.This PR also does some unrelated cleanup of the typing hints.