Re:Arc<str> vs. String, is Arc<str> faster?
by Philpax on Thursday January 04, 2024 @09:45PM
(#38875111)
That's interesting. I wonder how `Rc<str>` would fare - it should be able to avoid the locking. (Of course, you lose the ability to send it across threads... but that might not matter)
> Someone asked why I’m not including Rc<str> in this comparison, the reason is single-threaded Arc<str> has a pretty similar performance profile.