by ErikCorry · 3y ago · 0 comments
Collecting those nine elements looks terrible for locality.
Funnelsort is a cache oblivious variant of merge sort which is provably cache optimal in some sense. I haven't tried implementing it.
https://en.wikipedia.org/wiki/Introsort#Implementations
And heapsort has terrible cache behaviour.