When is cloning actually better than using Arc?

77 points Useful_Lecture_5927 59 comments

I often find myself choosing between cloning some data and wrapping it in Arc

My instinct is usually that Arc is more efficient because we're avoiding copies, but I have a feeling that this isn't always the right way to think about it

How do you decide between cloning and using Arc in a real application?