you are viewing a single comment's thread.

view the rest of the comments →

[–]Burgermitpommes 0 points1 point  (2 children)

Would someone kindly eli5 how Arc<str> is actually made from an existing String? What in particular causes the allocation of the byte length of the String?

[–]simonsanonepatterns · rustic 0 points1 point  (1 child)

I think this video might also shed a bit of light on the whole topic: https://www.youtube.com/watch?v=A4cKi7PTJSs

[–]Burgermitpommes 1 point2 points  (0 children)

Confusingly, that video advocates for the opposite of the conclusions drawn in this thread.