www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - how to consume less memory

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...
Jul 09 2012