How to release memory? (D2.0.30)
AxelS
a_bothe at gmx.net
Sat Jul 4 01:39:43 PDT 2009
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...
OK I'll try it with the C API but thanks for your help!
More information about the Digitalmars-d-learn
mailing list