News for hackers. Stuff that matters.
Re:Why is Rust slightly slower than C? by jcranmer on Wednesday September 11, 2019 @11:33PM (#20947672)
C/C++ compilers will happily optimize standard library functions. A call to printf that doesn't use any % formatting will usually get converted into a call to puts, for example. And strlen of a string literal is of course replaced with a constant integer, and strcpy will be converted to memcpy if the length is known. And memcpys of known length are of course emitted with appropriate move sequences.

There are no comments on this comment yet.