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