pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Sven Geisler <sgeisler@aeccom.com>
To: Martijn van Oosterhout <kleptog@svana.org>
Cc: Florian Weimer <fw@deneb.enyo.de>
Cc: Neil Conway <neilc@samurai.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Gary Doades <gpd@gpdnet.co.uk>
Cc: pgsql-performance@postgresql.org
Cc: pgsql-hackers@postgresql.org
Subject: Re: [PERFORM] qsort again
Date: Thu, 16 Feb 2006 14:08:40 +0100
Message-ID: <43F47958.8000605@aeccom.com> (raw)
In-Reply-To: <20060216124918.GE26127@svana.org>
References: <43F38867.6010701@gpdnet.co.uk>
	<19510.1140036968@sss.pgh.pa.us>
	<19779.1140038874@sss.pgh.pa.us>
	<43F39E53.1020009@gpdnet.co.uk>
	<20781.1140046109@sss.pgh.pa.us>
	<1140055972.31672.42.camel@localhost.localdomain>
	<873bijsdvb.fsf@mid.deneb.enyo.de>
	<20060216124918.GE26127@svana.org>

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.



view thread (4+ messages)  latest in thread

Message-ID: <43F47958.8000605@aeccom.com>
Permalink:  ../43F47958.8000605@aeccom.com/
Also on:    postgresql.org/message-id/43F47958.8000605@aeccom.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: sgeisler@aeccom.com, kleptog@svana.org, fw@deneb.enyo.de, neilc@samurai.com, tgl@sss.pgh.pa.us, gpd@gpdnet.co.uk, pgsql-hackers@postgresql.org
  Subject: Re: [PERFORM] qsort again
  In-Reply-To: <43F47958.8000605@aeccom.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox