Return-Path: X-Original-To: apmail-qpid-users-archive@www.apache.org Delivered-To: apmail-qpid-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id AEECE10265 for ; Mon, 27 Jan 2014 20:26:29 +0000 (UTC) Received: (qmail 672 invoked by uid 500); 27 Jan 2014 20:26:29 -0000 Delivered-To: apmail-qpid-users-archive@qpid.apache.org Received: (qmail 626 invoked by uid 500); 27 Jan 2014 20:26:29 -0000 Mailing-List: contact users-help@qpid.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@qpid.apache.org Delivered-To: mailing list users@qpid.apache.org Received: (qmail 613 invoked by uid 99); 27 Jan 2014 20:26:29 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 Jan 2014 20:26:29 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of fraser.adams@blueyonder.co.uk designates 80.0.253.68 as permitted sender) Received: from [80.0.253.68] (HELO know-smtprelay-omc-4.server.virginmedia.net) (80.0.253.68) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 Jan 2014 20:26:22 +0000 Received: from [192.168.1.102] ([82.38.120.72]) by know-smtprelay-4-imp with bizsmtp id K8Rz1n0281Zorai018S06b; Mon, 27 Jan 2014 20:26:00 +0000 X-Originating-IP: [82.38.120.72] X-Spam: 0 X-Authority: v=2.1 cv=KqzD2AmN c=1 sm=1 tr=0 a=kn84lg4yEBBc+Mp7+mj2YQ==:117 a=kn84lg4yEBBc+Mp7+mj2YQ==:17 a=thNyya010k0A:10 a=v4vpzP-mzdEA:10 a=3NElcqgl2aoA:10 a=IkcTkHD0fZMA:10 a=a5Gf7U6LAAAA:8 a=uPWxiBIxDQYA:10 a=WHqsj-p7Ed5j_KGlAnMA:9 a=QEXdDO2ut3YA:10 Message-ID: <52E6C0D7.1040603@blueyonder.co.uk> Date: Mon, 27 Jan 2014 20:25:59 +0000 From: Fraser Adams User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130329 Thunderbird/17.0.5 MIME-Version: 1.0 To: users@qpid.apache.org Subject: Re: Qpid's move to CMake and effect on performance. References: <52E3E0CC.7060408@blueyonder.co.uk> <1390835165.2639.95.camel@pansy.local> In-Reply-To: <1390835165.2639.95.camel@pansy.local> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org On 27/01/14 15:06, Andrew Stitcher wrote: > I think that (too lazy to actually go look) in autotools the build > default was -O2 and the Fedora/RHEL packaging set -O3. > > It is completely true that with cmake we've opted to follow the usual > cmake practice (which is standard on Windows too) of having the build > configuration dictate the optimisation/debug flags. I think that in the > Fedora/RHEL packages we now use the RelWithDebInfo build configuration > which corresponds to -O2 -g. > > It is true that if you specify no CMAKE_BUILD_TYPE then you will get no > optimisation or debug flags set which is perhaps a rather bad idea. > > What do you think the default build type should be? (Out of Debug = -g, > Release = -O2 -DNDEBUG, RelWithDebInfo -O2 -DNDEBUG -g, MinSizeRel = -Os > -DNDEBUG) > > It's not clear to me that we should prioritise performance over > debugability in our default build. > > Andrew > Thanks for the response Andrew - glad I'm not going mad :-D I think that I'm *relatively* agnostic as to what the default should be, but I definitely think that this stuff should be included in the build/install instructions for qpid/proton/dispatch/etc. If you've got familiarity with CMake it might be second nature, but I don't think we should assume this (I only figured it out by accident, having only fairly rudimentary CMake experience). Out of curiosity looking at the list above I don't see an option that does "-O3" what would that be? I'd like to eke the maximum performance out of the components I'm running operationally - we've got some very high throughput use cases so I'm keen to make sure that we don't hit performance regressions as we upgrade from earlier Qpid versions. Cheers, Frase --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org For additional commands, e-mail: users-help@qpid.apache.org