From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Default compiler optimization level for building dev sources Date: Fri, 22 Apr 2016 17:40:28 +0300 Message-ID: <8360v9671f.fsf@gnu.org> References: <87lh45vib7.fsf@wanadoo.es> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1461336059 6413 80.91.229.3 (22 Apr 2016 14:40:59 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 22 Apr 2016 14:40:59 +0000 (UTC) Cc: emacs-devel@gnu.org To: =?iso-8859-1?Q?=D3scar?= Fuentes Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Apr 22 16:40:58 2016 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1atcGO-0004yp-B4 for ged-emacs-devel@m.gmane.org; Fri, 22 Apr 2016 16:40:56 +0200 Original-Received: from localhost ([::1]:34257 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1atcGK-0004hw-Fl for ged-emacs-devel@m.gmane.org; Fri, 22 Apr 2016 10:40:52 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54436) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1atcGH-0004fP-2A for emacs-devel@gnu.org; Fri, 22 Apr 2016 10:40:49 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1atcGC-0001Qc-3j for emacs-devel@gnu.org; Fri, 22 Apr 2016 10:40:49 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:49322) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1atcGC-0001QX-0w; Fri, 22 Apr 2016 10:40:44 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:4278 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1atcGB-00009j-BQ; Fri, 22 Apr 2016 10:40:43 -0400 In-reply-to: <87lh45vib7.fsf@wanadoo.es> (message from =?iso-8859-1?Q?=D3s?= =?iso-8859-1?Q?car?= Fuentes on Fri, 22 Apr 2016 16:17:48 +0200) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:203178 Archived-At: > From: Óscar Fuentes > Date: Fri, 22 Apr 2016 16:17:48 +0200 > > I'm using Emacs 25.0.92 on Windows and it seems remarkably slower than > the previous binary. This one was built with a plain config && make > while the previous one had CFLAGS set to -O3 and other extra > optimization flags. So you are saying that -O2 (that's the default) is significantly slower than -O3? That's strange, my experience is that -O3 is generally not faster than -O2 and sometimes slower. > Maybe the build does not turn on optimizations when it detects that the > sources are on a repo. Sorry for asking here instead of checking it > myself but today I have no access to the sources nor the web. I don't think so. The default is -O2, so if you want -O3, you need to request it by saying "CFLAGS='-O3' ./configure ...". Do you still have the source directory tree where you b uilt the previous binary? If so, please tell what configure-time switches you used and which compiler switches do you see in src/Makefile.