Tango vs Phobos
Sean Kelly
sean at invisibleduck.org
Mon Aug 18 12:09:35 PDT 2008
Bruno Medeiros wrote:
> Sean Kelly wrote:
>> Bruno Medeiros wrote:
>>>
>>> But does delegate usage cause that much erroneous outer variable heap
>>> allocation? (by erroneous, I mean in situations were it would not be
>>> necessary)
>>
>> From what I've been told, it does. But I haven't personally tested D
>> 2.0 enough to say.
>>
>
> Is there any bug report or code sample of such situation? I recall you
> mentioning this problem before, but I haven't seen any concrete example
> so far. (not saying there isn't ;) )
>
>>> Or is the problem here that you are afraid that the developer might
>>> make a mistake were he would create a delegate that would capture an
>>> outer variable (and thus heap allocate it), but the developer would
>>> not notice it?
>>
>> No. My issue is simply with performance guarantees.
>>
>
> Guarentees by the D spec itself?
No, guarantees by Tango. Like how the STL provides "big O" guarantees
for its algorithms.
Sean
More information about the Digitalmars-d
mailing list