On Tue, 31 Mar 2015 05:21:13 +0000, deadalnix wrote: > On Tuesday, 31 March 2015 at 04:56:13 UTC, Daniel Murphy wrote: >> I've used D's GC with DDMD. It works*, but you're trading better >> memory usage for worse allocation speed. It's quite possible we could >> add a switch to ddmd to enable the GC. >> >> > That is not accurate. For small programs, yes. For anything non trivial, > the amount of memory in the working is set become so big that I doubt > there is any advantage of doing so.
i think that DDMD can start with GC turned off, and automatically turn it on when RAM consumption goes over 1GB, for example. this way small-sized (and even middle-sized) projects without heavy CTFE will still enjoy "nofree is fast" strategy, and big projects will not eat the whole box' RAM.
signature.asc
Description: PGP signature
