On Monday, 15 December 2014 at 12:22:32 UTC, Stephan Schiffels wrote:
Excellent, thanks everyone, problem solved. I use GC.disable and GC.enable for now, works like a charm. I new about these functions, but I thought they prevent GC-allocation, not just collection.

Using ThreadLocal storage with std.parallelism is also interesting, I won't need it now, as the memory is still within manageable bounds, but certainly an option to reduce the memory footprint... nice! And yes, I saw GC.reserve just after I wrote this thread, it seems to do what I wanted.

Stephan

Nice.

I don't know if it would help you in future but gcarena.d looks quite useful here:

https://bitbucket.org/infognition/dstuff/src/

Reply via email to