News for hackers. Stuff that matters.
Re:14,000x Speedup (2015) by jdmichal on Tuesday October 13, 2020 @09:57AM (#24765571)
My rule is that the only sort I will ever write by hand is a bubble sort. It's basically impossible to write incorrectly. If and when that breaks performance, then I will bring in an external sorting library and figure out what works the best for the data.

It's the equivalent philosophy to always buying the cheapest tool you can the first time around. When you break that tool, then you go out and buy the expensive one.

Re:14,000x Speedup (2015) by rgossiaux on Tuesday October 13, 2020 @12:39PM (#24767213)
The cheapest tool you can find is surely the sort in your programming language's standard library. Writing your own sort seems crazy to me.
Re:14,000x Speedup (2015) by jdmichal on Tuesday October 13, 2020 @01:11PM (#24767538)
What can I say. Sometimes you're not working with the blessed standard data structures for which those algorithms are typically written.