Path: csiph.com!usenet.pasdenom.info!news.albasani.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Ian Collins Newsgroups: comp.lang.c,comp.lang.c++ Subject: Re: Breakthrough Date: Tue, 05 Jun 2012 10:23:56 +1200 Lines: 19 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Trace: individual.net vvRAMbMo6nrlep4VOHwF+QZwLzax/MJpqsfn55bnTwvn2FyDP79Q4S4MiugCGHskDW Cancel-Lock: sha1:aHYP82zAnKb7teK7CWKnFyBOm6k= User-Agent: Mozilla/5.0 (X11; SunOS i86pc; rv:12.0) Gecko/20120423 Thunderbird/12.0 In-Reply-To: Xref: csiph.com comp.lang.c:21838 comp.lang.c++:16631 On 06/ 5/12 04:03 AM, jacob navia wrote: > Le 04/06/12 17:44, Ike Naar a écrit : >> >> On the machine that I tried, most of the time was spent on the >> implicit destruction of the list at program termination. > > Yes, I see a noticeable delay between the printing of the > result sum and the end of the program. > > Apparently cleaning up is quit e expensive since destructors must be > called 100 million times. > > In the CCL you can ADD a destructor if you want but they are NOT > required as in C++. So not leaking memory is optional :) -- Ian Collins