How to release memory? (D2.0.30)
Ary Borenszweig
ary at esperanto.org.ar
Sat Jul 4 02:14:40 PDT 2009
AxelS escribió:
> BCS Wrote:
>
>> You can't. The D runtime (and most other runtimes) don't ever reduce the
>> amount of memory they keep in the heap. If you where to allocate another
>> 25MB right after that function you would see no change in the memory usage.
>> The good news is that with virtual memory, all of that has almost zero cost.
>> What matters is how much ram you are actively using.
>>
>>
>
> I want to load and send a file via network...when I load the entire file into memory it's very stupid that I can't release that memory again...
Why not pipe it?
More information about the Digitalmars-d-learn
mailing list