3 ms·
I wonder how much difference there would be if I used shared_ptr in C++ instead of the bare one. EDIT: As far as I can tell less than 190 lines of asm but I d
by scotty79 4y ago
I wonder how much difference there would be if I used shared_ptr in C++ instead of the bare one.
EDIT:
As far as I can tell less than 190 lines of asm but I don't know shared_ptr enough to produce exactly the same code.
- steveklabnik 4y agoYeah, that gets closer for sure. refcell is still going to add a bit of state to the value inside of the allocation, but at least the shared_ptr and Rc/Arc bits are the same semantic, so it'll be closer!