Am 06.04.2013 06:16, schrieb Adrian Mercieca:
Hi,

Is it possible to switch off the GC entirely in D?
Can the GC be switched off completely - including within phobos?

What I am looking for is absolute control over memory management.
I've done some tests with GC on and GC off and the performance with GC is
not good enough for my requirements.

Thanks.
- Adrian.


It is possible, but it heavily crippeles the language and requires modifications to druntime.

See: http://3d.benjamin-thaut.de/?p=20

Also see my GC free version of druntime:
https://github.com/Ingrater/druntime

My GC free version of phobos (heavily crippeled):
https://github.com/Ingrater/phobos

And my little GC free "standard library":
https://github.com/Ingrater/thBase

Its quite fun doing it when you want to learn new things, but I would not recommend doing so in a real wordl project.
--
Kind Regards
Benjamin Thaut

Reply via email to