fastSort benchmarking (was Re: Work done so far)

Robert Fraser fraserofthenight at gmail.com
Mon Jan 21 00:54:54 PST 2008


Matti Niemenmaa wrote:
> It appears to do a lot of comparing, though---and thus, when made to use 
> a custom comparing function instead of the built-in "<" operator it 
> quickly slows down.

Mergesort generally does fewer compares than quicksort (that's why it's 
the default sorting algorithm for objects, but not primitives, in Java), 
although it has the cost of copying & allocation there.



More information about the Digitalmars-d mailing list