Or burstsort if the data size is truly huge.
As usual, StackOverflow is missing the forest for the trees.
Or burstsort if the data size is truly huge.
As usual, StackOverflow is missing the forest for the trees.
A better claim would be that, among the comparison based sorts, algos in the quicksort family tend to be faster in practice.
ips4o is a samplesort-derivative (the name stands for Inplace Super-Scalar Sample SOrt), which is kinda quicksort-derived, but doesn't use one pivot, but many (in the case of ips4o, 255, iirc). It's heritage traces back to quicksort, if you will, but it's also very different.
About optimizing generic sorting routines for modern hardware.
Also, If counting based sorting algorithm is faster in practice , why we are not seeing more of it in database system?
(That said, bubblesort can be fast if the data are usually very close to sorted - one example here is depth-sorting polygons for a rendering engine on a highly constrained platform.)
Another example application of adaptive sorts is the sweep-and-prune broadphase collision detection algorithm that's somewhat commonly used in physics engines.
Burstsort and radix sort are best for cases where you actually sort based on whole or almost whole structure comparison - as in memcmp.
Burstsort is also equivalent to walking a trie index in a database. So yes, you see it quite a lot.