4 ms·
The way I read it was that with many columns the overhead of the compare function (even if it's inlined) is too high compared to sorting overhead.
by b9a2cab5 5y ago
The way I read it was that with many columns the overhead of the compare function (even if it's inlined) is too high compared to sorting overhead.
- lnkuiper 5y agoExactly. Even when it’s inlined, having a comparator with if/else is much, much slower than a single memcmp