Re: Optimization levels when compiling PostgreSQL... - Mailing list pgsql-hackers

From Florian Weimer
Subject Re: Optimization levels when compiling PostgreSQL...
Date
Msg-id 8765wx6yzt.fsf@Login.CERT.Uni-Stuttgart.DE
Whole thread Raw
In response to Re: Optimization levels when compiling PostgreSQL...  (Sean Chittenden <sean@chittenden.org>)
List pgsql-hackers
Sean Chittenden <sean@chittenden.org> writes:

> I'm thinking about changing this from a beta port to a -devel port
> that I'll periodically update with snapshots.  I'll turn on -O6 for
> the -devel port and -O2 for production for now.  If I don't hear of
> any random bogons in the code I'll see if I can't increase it further
> to -O3 and beyond at a slow/incremental rate.

-O3 is usually slower than -O2 because of increased code size due to
automatic inlining. With GCC, -O4 etc. are all equivalent to -O3.

-- 
Florian Weimer                       Weimer@CERT.Uni-Stuttgart.DE
University of Stuttgart           http://CERT.Uni-Stuttgart.DE/people/fw/
RUS-CERT                          fax +49-711-685-5898


pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: HISTORY updated for 7.3beta2
Next
From: "Shridhar Daithankar"
Date:
Subject: Re: Improving speed of copy