Comment Comment by thrownaway2424 The thing to keep in mind is that copying a shared_ptr isn't cheap at all. It's a class with a pointer and atomic reference count inside and the atomic inc/dec takes many cycles. parent thrownaway2424 10 years ago