Re:D as a C Replacement
by nicwilson on Tuesday July 02, 2019 @09:33PM
(#20340866)
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.
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.