Using Arc<[T]> instead of Vec<T>

298 points Jarsop

Hi all, I want to share with you a great Youtube video from Logan Smith which talk about Arc<[T]> performance rather than Vec<T>

Basically it's using Arc<[T]> when you don't need mutability

Let me know what you think about it :)

EDIT: As @viruslobster says: This video also does a good job of explaining String vs str.

https://www.youtube.com/watch?v=A4cKi7PTJSs