A Fast Quicksort: High-Performance Sorting with Branchless Partitioning
The author introduces blqsort, a fast general-purpose quicksort implementation written in C and C++ that utilizes branchless partitioning, sorting networks, and robust pivot selection to outperform standard sorting algorithms like std::sort. Benchmarks demonstrate that blqsort achieves significantly faster execution times on random data across different hardware systems. The implementation is available on GitHub under the MIT license as a single header file. Open article →