Re: PG qsort vs. Solaris - Mailing list pgsql-hackers

From Zdenek Kotala
Subject Re: PG qsort vs. Solaris
Date
Msg-id 4522BF94.2050908@sun.com
Whole thread Raw
In response to Re: PG qsort vs. Solaris  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Tom Lane wrote:
> Zdenek Kotala <Zdenek.Kotala@Sun.COM> writes:
>> Is it time to "remove" PG qsort and use libc version for solaris 9, 10...?
> 
> I have no particular desire to introduce a version number check until we
> have to.  If you can show that the newer versions have a qsort that
> substantially *out-performs* ours, it would be worth doing that, but
> merely being competitive isn't enough to make it worth the trouble.
> 

The implementation in the solaris uses same ideas like postgres 
implementation exclude sort array detection. There are small difference  with threshold when median uses 9 items and
thresholdfor insertion 
 
sort. Performance is similarly - no winer (only on sorted array).
Zdenek


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: [PATCHES] vcbuild bison check
Next
From: Gregory Stark
Date:
Subject: Pie-in-sky dreaming about reworking tuple layout entirely