Re:Rust is now overall faster than C in benchmarks
by steveklabnik on Sunday January 03, 2021 @02:25PM
(#25624337)
The classic example is quicksort. qsort takes a function pointer, but std::sort is a template. This means that the machinery can be inlined more often in C++ than C.
https://stackoverflow.com/questions/18002087/qsort-vs-stdsor...