5 ms·
FTA: By inlining C++ is able to run just the raw algorithm. On the opposite the C code has a number of indirections The typical C developer is aware of t
by veyron 15y ago
FTA:
By inlining C++ is able to run just the raw algorithm. On the opposite the C code has a number of indirections
The typical C developer is aware of the deficiencies and would write a custom macro to do the sort (I have a whole macro library for many small functions)
I agree that the language provides convenience, but the statement that sorting as a concept is faster in C++ than in C seems to be a stretch.