> Is Rust faster than C
> Example:
>... unsafe...
Its like Rust proponents can't even see the irony.
> Is Rust faster than C
> Example:
>... unsafe...
Its like Rust proponents can't even see the irony.
I assume this example is used because programmers of either language reach for asm when looking for raw performance. But to me, it's shouldn't even be a discussion point, since even I know both languages can be made to emit the same assembly.
Also, I think it side-steps the hard parts of the question - which is, what are the performance impacts of Rust safety?
None from the aspect of borrow model, since that is all compile time.
For safety at run time, there is a hit if you use certain structures because you can't figure out at compile time what things like dynamic bounds are. But its no different than C with having to do manual bounds checking.