News for hackers. Stuff that matters.
Re:Why is Rust slightly slower than C? by pknopf on Thursday September 12, 2019 @12:07AM (#20947862)
RefCell has an internal semaphore. It's used specifically for multi threaded scenarios.

If someone is writing a multi threaded C app, they will likely be using semaphores as well. At least, they should be. Rust just enforces it.

So, I wouldn't say rust is "slower" in the regard.

Re:Why is Rust slightly slower than C? by PrototypeNM1 on Thursday September 12, 2019 @04:12AM (#20949160)
Iirc RefCell is marked !Sync, I thought Mutex was the multithreadong analog?
Re:Why is Rust slightly slower than C? by steveklabnik on Thursday September 12, 2019 @08:50AM (#20950820)
That's correct.