4 ms·
This way of adding metaprogramming to C does not improve performance. The compiler will still be unable to inline the comparisons in the qsort example. C++ will
by petters 10y ago
This way of adding metaprogramming to C does not improve performance. The compiler will still be unable to inline the comparisons in the qsort example. C++ will continue to be much faster.
- nialv7 10y agoIt does. It's just no one has come around to write a qsort in macros yet. (And only then the comparison would be fair)