3 ms·
Shouldnt they be about the same? (At least until the LLVM immutability optimizations happen) I suspect surprising factors are in play.
by moldavi 6y ago
Shouldnt they be about the same? (At least until the LLVM immutability optimizations happen)
I suspect surprising factors are in play.
- jug 6y agoI'd look at the algorithms here. Looking a bit fishy with sometimes quite serious differences...
- skohan 6y agoThe ceilings should be similar, but there is an argument that there are cases where idiomatic Rust might outperform idiomatic C or vice versa. For instance, in real-world usage, you might do a bit more redundant copying in C in places you would avoid it with the borrow checker in Rust. Conversely, enforcing RAII in Rust might cost performance in some scenarios relative to C.