| ▲ | Narishma 3 hours ago | ||||||||||||||||
I don't think there's much difference between C and C++ (and Rust, etc...) when it comes to this. | |||||||||||||||||
| ▲ | formerly_proven an hour ago | parent | next [-] | ||||||||||||||||
Idiomatic/natural rust tends to be a lot heavier on allocations and also physically moving objects around than the other two. | |||||||||||||||||
| |||||||||||||||||
| ▲ | Joel_Mckay 3 hours ago | parent | prev [-] | ||||||||||||||||
There is unless using a llvm compiler that does naive things with code motion. Rust is typically slowest (often negligible <3%), C++ has better CUDA support, and C can be heavily optimized with inline assembly (very unforgiving to juniors.) Also, heavily associated with coding style =3 https://en.wikipedia.org/wiki/The_Power_of_10:_Rules_for_Dev... | |||||||||||||||||