Am 14.12.2012 um 17:07 schrieb Joerg Sonnenberger <jo...@britannica.bec.de>:

> On Fri, Dec 14, 2012 at 08:59:37AM +0000, David Laight wrote:
>> Similarly it just isn't worth trying to free resources prior
>> to program exit. Have you ever waited while a big C++ program
>> runs all its destructors, paging in code and data just to exit!
> 
> Depends, it makes tools like valgrind a lot easier to use.
> 

Source code should be optimized for readability, performance, stability, and 
not for debug tools. And that means to consider realities like the fact that on 
Unix resources are freed when the process exits and an explicit free is counter 
productive if terms of effectiveness.



> Joerg

Reply via email to