3 ms·
Question: I totally agree that the second version is much cleaner. But, how does the performance of the two compare in Haskell? "Premature optimization is the
by ivanjr0 10y ago
Question: I totally agree that the second version is much cleaner. But, how does the performance of the two compare in Haskell?
"Premature optimization is the root of all evil" and all that. But, a sorting routine is something everyone would expect to be as efficient as possible, right? (Maybe it was just for the sake of the example?)
I heard 1 or 2 things about Haskell being lazy, etc. Does it makes the second version less inefficient than it looks?
- supercarrot 10y agosecond version is super slow. it's always quadratic, no matter what input it is. http://stackoverflow.com/questions/7717691/why-is-the-minimalist-example-haskell-quicksort-not-a-true-quicksort http://stackoverflow.com/questions/7717691/why-is-the-minima...
- deleted 10y ago[deleted]