5 ms·
It is just a toy implementation. If we're going to worry about practicals, then it's not recommended to use your own general purpose sorting implementations at
by Deestan 16y ago
It is just a toy implementation. If we're going to worry about practicals, then it's not recommended to use your own general purpose sorting implementations at all. For general purpose sorting, the standard library "always" has the best implementation.
- sizzla 16y agoAny knowledge about your data set, how much of it varies, etc can vastly improve your performance over any canned standard library solution. Sorting ints? Radix-sort that mofo.
- dagw 16y agoExcept it is also the canonical look-how-awesome-Haskell-is example that keeps getting trotted out all the time. Why aren't there more canonical examples of Haskell being both simple and awesome as well as fast and correct?