Comment Rust is better at some things than C and viseversa (Score 2) 179
Some of Rust’s strengths include the absence of a runtime and the lack of a garbage collector, which leads to more consistent performance. Compared to languages like Go, Rust may appear slower in some cases, but it avoids the performance hiccups caused by large garbage collection sweeps. It also tends to use less memory.
I’m okay with a small performance hit compared to C. I also believe that compiler improvements will help reduce this gap over time. Currently, the intermediate code generated by the compiler doesn't fully utilize all the context that Rust provides, which can limit optimization. Perhaps the money would be better spent improving the compiler rather than optimizing the code manually.
This Reddit thread has comments that provide more insight than the original post: https://www.reddit.com/r/rust/comments/px72r1/what_makes_rust_faster_than_cc/