2 ms·
> In language performance benchmarks, you often see C++ being slower than C. This is the first that I have ever seen such a statement. And, I am sure we could
by throwaway2037 2y ago
> In language performance benchmarks, you often see C++ being slower than C.
This is the first that I have ever seen such a statement. And, I am sure we could legitimately write exactly the opposite: <<you often see C being slower than C++>>. Not much being said here. As I understand, C++ template code can be much faster than equivalent code in C because the compiler has more metadata for optimisation. The classic case is C's qsort() vs C++'s sort(), where the C++ version is much faster due to compiler optimisation.