r/rust • • Jul 26 '19

Is this comment about the reference counting performance in Rust accurate?

/r/ProgrammerHumor/comments/b274zp/oof/eirvecs?context=3
50 Upvotes

52 comments sorted by

View all comments

Show parent comment

1

u/CodenameLambda Jul 27 '19

If it can somehow contain Rcd loops between types (if not directly, maybe via trait objects), otherwise the amount of Rcs behind any one Rcs is bounded. And Rcd recursive types tend to be somewhat rare in my experience, although yours might differ.