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?

It wouldn't.

It's when you have a shared_ptr to an object that has a shared_ptr to an object that has a ... (or unique_ptrs along the way).

I saw a paper on this once but my google fun is failing me.

Atila


Reply via email to