News for hackers. Stuff that matters.
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)
Re:Arc<str> vs. String, is Arc<str> faster? by saghm on Thursday January 04, 2024 @09:53PM (#38875160)
Not sure if they added this since you posted this comment, but at the bottom they mention the following under "Notes":

> 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.