Re: [HACKERS] qsort again - Mailing list pgsql-performance

From Sven Geisler
Subject Re: [HACKERS] qsort again
Date
Msg-id 43F47958.8000605@aeccom.com
Whole thread Raw
In response to Re: [HACKERS] qsort again  (Martijn van Oosterhout <kleptog@svana.org>)
List pgsql-performance
Martijn van Oosterhout schrieb:
>
> Last time around there were a number of different algorithms tested.
> Did anyone run those tests while getting it to count the number of
> actual comparisons (which could easily swamp the time taken to do the
> actual sort in some cases)?
>

The last time I did such tests is almost 10 years ago. I had used
MetroWerks CodeWarrior C/C++, which had Quicksort as algorithm in the Lib C.
Anyhow, I tested a few algorithms including merge sort and heapsort. I
end up with heapsort because it was the fastest algorithm for our issue.
We joined two arrays where each array was sorted and run qsort to sort
the new array.

Sven.

pgsql-performance by date:

Previous
From: Martijn van Oosterhout
Date:
Subject: Re: [HACKERS] qsort again
Next
From: Ron
Date:
Subject: Re: qsort again (was Re: Strange Create Index