Stable, run-adaptive mergesort with O(√(n log n)) extra space instead of a buffer for n/2 elements.
Finn MoltmannTamio-Vesa NakajimaSebastian Wild
Philipps-Universität Marburg
ESA 20261 · powersort
the catch
Every Timsort / Powersort implementation merges through a buffer of n/2 elements. Merging in place exists — but is several times slower.2 · virtual-memory powersort
3 · experiments
120-byte records (1 GB input):
6 MB instead of 543 MB.
running time · int
running time · 120-byte records
more
Full paper, code and data.
wild-inter.net/publications/
moltmann-nakajima-wild-2026
Step through Virtual-Memory Powersort on your own inputs — Pingpong Powersort, too.
power-sort.github.io/
virtual-memory-powersort
→ Come by the poster for Pingpong Powersort and all four data types.
F. Moltmann, T.-V. Nakajima, S. Wild: Virtual-Memory Powersort. ESA 2026, LIPIcs 388, 14:1–14:17 · doi 10.4230/LIPIcs.ESA.2026.14 · code git.sr.ht/~tamionv/vm-powersort