DMD 0.175 release
Walter Bright
newshound at digitalmars.com
Tue Nov 28 10:50:05 PST 2006
Dave wrote:
> == Quote from Walter Bright (newshound at digitalmars.com)'s article
>> Dave wrote:
>>> For the stack allocation, I'm wondering if in future versions
> it would
>>> be possible to suppress the call to _d_callfinalizer if there
> is no dtor
>>> to call? (sometimes the RAII isn't needed, but the speed is).
>> The problem is the monitor needs to be freed, too.
>
> Could that part be inlined (if there isn't a dtor)?
>
> if (p && ((cast(void**)p)[1]) _d_monitorrelease(cast(Object)p);
Yes, it could be, but it won't buy that much, because the real cost is
that the release has to be set up in a finally block.
More information about the Digitalmars-d-announce
mailing list