News for hackers. Stuff that matters.
Re:Hoare’s Rebuttal and Bubble Sort’s Comeback by chkas on Sunday January 30, 2022 @12:20PM (#30138982)
A while ago I was tinkering with Quicksort and avoiding branch mispredictions.

https://easylang.online/blog/qsort_c.html

My implementation is pretty fast. At a size of 40 or 50, I switch to Insertion sort, and there the branchless bubblesort is significantly slower (I just tried it).

But I have to admit defeat to this Sample sort:

https://github.com/SaschaWitt/ips4o

There are no comments on this comment yet.