TempAlloc Overhaul

Rainer Schuetze r.sagitario at gmx.de
Fri Jun 17 10:07:57 PDT 2011



On 17.06.2011 16:12, dsimcha wrote:
> On 6/16/2011 11:46 PM, Andrei Alexandrescu wrote:
>>
>> * The synopsis should use scope(exit) TempAlloc.frameFree(); as that is
>> a robust idiom.
>
> Good point.

Please note that "scope(exit) { ... }" has its own significant 
performance overhead since it is implemented using the 
exception-handling stack-unwinding mechanics even in the uninterrupted 
case where no exception is thrown. I think dmd needs to improve on this.


More information about the Digitalmars-d mailing list