Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
sort: Strings should use 3-way radix quicksort #28071
"3-way radix quicksort is the method of choice for sorting strings" – Robert Sedgewick (https://www.cs.princeton.edu/~rs/AlgsDS07/18RadixSort.pdf , slide 29)
In my tests, 3-way radix quicksort is about twice as fast as Go 1.11's sort.Strings.
Rough demo code: https://play.golang.org/p/KGVIX6Cwha8
From the comment in the CL -