|
|
|
|
|
by paulddraper
19 days ago
|
|
It's an in-place sort with extra space O(log n). Same as quicksort average, better than quicksort worst O(n^2). This uses a bunch of low-level tricks and alternate stragies to beat std::sort on random data. The primary advantage is branchless partitioning, which is a big win for random data, which hurts branch prediction for quicksort. |
|