News for hackers. Stuff that matters.
Re:Arc<str> vs. String, is Arc<str> faster? by eps on Thursday January 04, 2024 @06:38PM (#38873765)
It would've helped greatly if the post bothered to mention the language.
Re:Arc<str> vs. String, is Arc<str> faster? by ramon156 on Thursday January 04, 2024 @07:10PM (#38874010)
When primeagen is mentioned, you can assume it's Rust (;
Re:Arc<str> vs. String, is Arc<str> faster? by jasonjmcghee on Thursday January 04, 2024 @06:47PM (#38873846)
It's Rust
Re:Arc<str> vs. String, is Arc<str> faster? by innocenat on Friday January 05, 2024 @06:38AM (#38878061)
Agree. I recognized the Rust language when I saw the actual code but would be nice to know just from the title.
Re:Arc<str> vs. String, is Arc<str> faster? by scotty79 on Friday January 05, 2024 @07:46AM (#38878529)
Arc<str> looks Rusty
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.

Re:Arc<str> vs. String, is Arc<str> faster? by cmiller1 on Friday January 05, 2024 @06:56AM (#38878204)
I don't mean to pick nits but this post could really use some proofreading. "You might be wandering" "Terminlogy"