\g [mode]
Show or set garbage-collection mode. The default mode is 0.
| B | mode | behavior |
|---|---|---|
| 0 | deferred | returns memory to the OS when either .Q.gc[] is called or an allocation fails, hence has a
performance advantage, but can be more difficult to dimension or manage memory requirements.
|
| 1 | immediate | returns (certain types of) memory to the OS as soon as no longer referenced; has an associated performance overhead. |