by qsort · 4y ago · 0 comments
In most cases, giving the compiler more information to work with makes the resulting code faster. C++ is generally slightly faster than equivalent C, even though the difference is usually very small.
I have to agree with the OP, C being 34% faster than C++ is simply an absurd result.
When you wrote "always flawed" perhaps you meant inevitably flawed ?
If not, then perhaps you could suggest a practical approach that would not exhibit that variation.