Manuscript Offprint

arXiv:2611.24786

SotSort: a stable quicksort with a tunable buffer

Lucas Sotomayor

Abstract

SotSort is a stable comparison sort whose single code path runs with anything from a fixed 16 KB buffer to a full n-element buffer. Its core is a stable quicksort that partitions blocks through the buffer and gathers them with rotations. This report summarises the design, states which parts are borrowed, and compares an implementation against blitsort, fluxsort, glidesort, driftsort, GrailSort and WikiSort. On one 2-vCPU machine, with 32- and 64-bit integers, the constant-memory mode takes between 0.19 and 0.75 of blitsort's time on 16 of 22 input classes and between 0.94 and 1.09 on the other six. With a comparator that rules out the vector partition it is slower than blitsort on 7 of 11 classes, by up to 2.6 times on sorted input. All numbers are preliminary.

A PDF page turning into lines of clean text

Preparing the full text

It will appear here by itself. You can read the abstract meanwhile.

References (4)