how to consume less memory
Jonathan M Davis
jmdavisProg at gmx.com
Mon Jul 9 10:49:07 PDT 2012
On Monday, July 09, 2012 19:46:53 maarten van damme wrote:
> I use a foreach with parallel where I download and process webpages.
> Needles to say, this can consume a lot of memory at peak times. I've
> noticed the D garbage collector doesn't return the memory when it
> isn't needed anymore. Is there any clever way to limit that usage?
> Currently it consumes 1 gig but I'm afraid it'll get even higher...
As I understand it, the GC _never_ returns memory to the OS once it has it.
Certainly that used to be the case, so unless that's been changed, it's still
the case.
- Jonathan M Davis
More information about the Digitalmars-d-learn
mailing list