3 ms·
Incidentally, this is the same reason why sorting in C++ using std::sort is much faster than qsort[1]. Basically, std::sort, which is templated, lets the compi
by agwa 14y ago
Incidentally, this is the same reason why sorting in C++ using std::sort is much faster than qsort[1]. Basically, std::sort, which is templated, lets the compiler do the same specialization and inlining that this article talks about.
[1] http://radiospiel.org/sorting-in-c-3-times-faster-than-c http://radiospiel.org/sorting-in-c-3-times-faster-than-c