D on quora ...

Paulo Pinto pjmlp at progtools.org
Mon Oct 16 16:38:56 UTC 2017


On Monday, 16 October 2017 at 16:11:05 UTC, Ola Fosheim Grøstad 
wrote:
> On Monday, 16 October 2017 at 14:24:57 UTC, Paulo Pinto wrote:
>> On Monday, 16 October 2017 at 14:14:50 UTC, Ola Fosheim 
>> Grøstad wrote:
>>> On Monday, 16 October 2017 at 13:49:50 UTC, Atila Neves wrote:
>>>> A std::shared_ptr going out of scope can pause the program 
>>>> for just as long as a GC mark-and-sweep.
>>>
>>> I don't use shared_ptr much, but why would a single 
>>> shared_ptr be that slow?
>>
>> Cascade deletion of nested data structures, with the 
>> possibility of causing stack overflow.
>
> Cascaded deletion? That's far more than a shared_ptr… Nobody 
> does that in real code, unless they are prototyping.

You would be amazed what real code on Fortune 500's looks like, 
specially if it comes from offshored projects.



More information about the Digitalmars-d mailing list