qsort (was Re: Solaris) - Mailing list pgsql-general

From Tom Lane
Subject qsort (was Re: Solaris)
Date
Msg-id 26779.1051629468@sss.pgh.pa.us
Whole thread Raw
In response to Re: Solaris  (Bruce Momjian <pgman@candle.pha.pa.us>)
List pgsql-general
Bruce Momjian <pgman@candle.pha.pa.us> writes:
> Mark Kirkwood wrote:
>> In fact I wonder if using the BSD qsort for *all* platforms might be a
>> good idea - it would provide cross platform consistency and possibly
>> better performance (e.g. It was several times quicker than  glibc qsort,
>> when I checked this on Linux last year.... )

> Replacing qsort() on all platforms has a "we know better than the OS"
> feel to it that we try to avoid.

I agree on that --- but when it's provable that we do know better than a
*particular* OS, dropping in the BSD qsort seems like an easy win.  Can
anyone back up Mark's finding that the BSD qsort is quicker than glibc's?

            regards, tom lane


pgsql-general by date:

Previous
From: Richard Huxton
Date:
Subject: Re: Importing from Access 2000?
Next
From: Gerhard Hintermayer
Date:
Subject: Re: Backend memory leakage when inserting