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.

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton