Re:A safe, non-owning C++ pointer class
by surajrmal on Monday September 29, 2025 @11:16PM
(#45421557)
With make_shared it's guaranteed to be a single allocation these days so you shouldn't necessarily have cache locality problems. I do think there are benefits to things being intrusively recounted as you save 8 bytes per object. And if you give up a weak count you can save even more.
[ Parent
| on HN ]
There are no comments on this comment yet.