DMD memory management
deadalnix via Digitalmars-d
digitalmars-d at puremagic.com
Wed Jun 17 12:33:28 PDT 2015
On Wednesday, 17 June 2015 at 17:10:40 UTC, ketmar wrote:
> On Mon, 15 Jun 2015 18:19:06 -0400, bitwise wrote:
>
>> When memory is never cleaned up, can't that make fork() really
>> slow? Doesn't fork copy all memory of the entire process?
>
> on any decent OS fork(2) does CoW (copy-on-writing), so forking
> is lightning fast. also, any decent OS knows about
> "fork-and-replace" pattern, so it throws away old process pages
> on replacing.
"lightning fast" for some value of "lightning fast".
More information about the Digitalmars-d
mailing list