Using tasks without GC?

Elronnd elronnd at elronnd.net
Sat Jan 4 02:23:34 UTC 2020


You can control when the gc runs.  So if you know the allocations 
are small enough that they won't OOM, then you can say 
GC.disable, and it straight up won't run at all.  But you can 
manually run a collection cycle (during a loading screen or 
whatever) with GC.collect.  See 
http://dpldocs.info/experimental-docs/core.memory.GC.html


More information about the Digitalmars-d-learn mailing list