Re: [PERFORM] A Better External Sort? - Mailing list pgsql-hackers

From Martijn van Oosterhout
Subject Re: [PERFORM] A Better External Sort?
Date
Msg-id 20051004100441.GC17589@svana.org
Whole thread Raw
In response to Re: [PERFORM] A Better External Sort?  (Simon Riggs <simon@2ndquadrant.com>)
Responses Re: [PERFORM] A Better External Sort?
List pgsql-hackers
On Mon, Oct 03, 2005 at 10:51:32PM +0100, Simon Riggs wrote:
> > Basically, I recommend adding "-Winline -finline-limit-1500" to the
> > default build while we discuss other options.
>
> I add -Winline but get no warnings. Why would I use -finline-limit-1500?
>
> I'm interested, but uncertain as to what difference this makes. Surely
> using -O3 works fine?

Different versions of gcc have different ideas of when a function can
be inlined. From my reading of the documentation, this decision is
independant of optimisation level. Maybe your gcc version has a limit
higher than 1500 by default.
--
Martijn van Oosterhout   <kleptog@svana.org>   http://svana.org/kleptog/
> Patent. n. Genius is 5% inspiration and 95% perspiration. A patent is a
> tool for doing 5% of the work and then sitting around waiting for someone
> else to do the other 95% so you can sue them.

pgsql-hackers by date:

Previous
From: Martijn van Oosterhout
Date:
Subject: Re: Tuning current tuplesort external sort code for 8.2
Next
From: Simon Riggs
Date:
Subject: Re: Vacuum and Transactions