Comment by orlp
10 hours ago
It's called driftsort because it's derived from another sort I made, glidesort: https://github.com/orlp/glidesort. Glidesort is a bit faster still for large inputs, however it was too large and complex for inclusion in the standard library, and suffered from code size penalties on small inputs. So driftsort is a slimmed down version more appropriate for general purpose.
This comment didn't explain the name or how it works.
It's just a play on words, something lightweight drifts in the wind rather than gliding on a wing. It's really not all that deep.
How does that relate to the mechanics of the algorithm?
1 reply →