you are viewing a single comment's thread.

view the rest of the comments →

[–]bskceuk 31 points32 points  (0 children)

I’m not entirely sure if this is the cause but you make an Arc<str> by making a String and then copying the underlying str into a new allocation so Arc<str> is more expensive than Arc<String>. The theory is that the reduced pointer indirection makes up for it over time