r/rust • u/TheProgrammar89 • Jul 26 '19
Is this comment about the reference counting performance in Rust accurate?
/r/ProgrammerHumor/comments/b274zp/oof/eirvecs?context=3
50
Upvotes
r/rust • u/TheProgrammar89 • Jul 26 '19
View all comments
Show parent comment
2
u/simonask_ Jul 27 '19
std::shared_ptralso have some very interesting (or "interesting" if you like) features, where for example instancesstd::shared_ptr<T>andstd::shared_ptr<U>can share the same control block (ifThas unique ownership of an instance ofU). These are clever, but can also introduce some very interesting debugging scenarios...