On Monday, 6 March 2017 at 05:50:01 UTC, Rico Decho wrote:
Actually it's my case. I'd LOVE to use D for game development for instance, but I won't take the risk of having the GC pause the game when I don't want to, even for just an unknown amount of milliseconds, and even if I know that anyway I'll try to limit dynamic allocations by using caches etc.

void loop() {
    // code
}

void loadLevel() {
    import core.memory : GC;
    GC.disable();
    while(stuff)
        loop();
    GC.collect();
}

Also see EMSI containers for no gc containers with deterministic destruction https://github.com/economicmodeling/containers

Reply via email to