Re: Which qsort is used - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: Which qsort is used
Date
Msg-id 200512121650.jBCGoAP21133@candle.pha.pa.us
Whole thread Raw
In response to Which qsort is used  (Qingqing Zhou <zhouqq@cs.toronto.edu>)
Responses Re: Which qsort is used
Re: Which qsort is used
List pgsql-hackers
Qingqing Zhou wrote:
> 
> Seems we don't link against the port/qsort.c - is there any reason for
> that? My tests indicates our qsort is much much faster than the libc's.

We haven't been able to determine if the OS's qsort or pgport's is
faster.  Right now we only force pgport qsort on Solaris (from
configure.in):
# Solaris has a very slow qsort in certain cases, so we replace it.if test "$PORTNAME" = "solaris";
thenAC_LIBOBJ(qsort)fi

Are you willing to say that we should always prefer pgport over glibc's
qsort()?

--  Bruce Momjian                        |  http://candle.pha.pa.us pgman@candle.pha.pa.us               |  (610)
359-1001+  If your life is a hard drive,     |  13 Roberts Road +  Christ can be your backup.        |  Newtown Square,
Pennsylvania19073
 


pgsql-hackers by date:

Previous
From: Qingqing Zhou
Date:
Subject: Which qsort is used
Next
From: "Qingqing Zhou"
Date:
Subject: Re: Which qsort is used