News for hackers. Stuff that matters.
Re:Algorithmic complexity attacks and libc qsort() by boomzilla on Wednesday June 11, 2014 @02:02PM (#7879419)
You can implement merge sort in place too:

http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.22....

Looks like the algo is more complicated, but surely implementable. In most modern architectures, the key for performance is how one exploits the caching behavior. Quicksort is very cache friendly, as well as the common implementation of merge sort. Not so for heapsort.

There are no comments on this comment yet.