manual memory management

Era Scarecrow rtcvb32 at yahoo.com
Wed Jan 9 12:34:33 PST 2013


On Tuesday, 8 January 2013 at 22:19:56 UTC, Walter Bright wrote:
> Interestingly, carefully written code using a GC can be 
> *faster* than manual memory management, for a number of rather 
> subtle reasons.

  One being calling the OS to allocate memory is an expensive 
operation (freeing as well?). I would think a smart GC once it 
identifies a free memory block may not free it to the OS but hold 
onto it, then give it to another process when asked for memory, 
thereby skipping the OS step.


More information about the Digitalmars-d mailing list