3 ms·
Mere presence shouldn't. If you never allocate from it (which is able to be verified very easily with the @nogc attribute), it will never trigger. You can dis
by nicwilson 7y ago
Mere presence shouldn't.
If you never allocate from it (which is able to be verified very easily with the @nogc attribute), it will never trigger.
You can disable it and trigger when you feel it is needed.
You can choose to just leak.
The default GC is OK, but not great. However it recently was made multithreaded in the mark phase so it is much faster than it used to be.
There is a fork based (on linux only IIRC) GC, used by several companies for hard realtime systems, that marks and sweeps in a separate process with CoW pages.