On Thursday, 10 July 2014 at 02:51:05 UTC, logicchains wrote:
I was wondering if thread-local GC had been considered an option for making D's GC work better in threaded code? Erlang has this (well, process-local GC, which is closer to fibre-local in D terms) and it seems to work okay, although I don't think Erlang allows shared memory between processes.

If this were possible, it would be particularly useful if it could be combined with nogc to allow the spawning of nogc threads. These could be used for latency-sensitive work, with the guarantee that work done in a nogc thread would never be paused by garbage collection done in other threads.

Very interesting points. There is currently work going on this topic. Search the forums and I believe you'll find it. Otherwise I can see if I find something.

Reply via email to