From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: The Emacs master is much slower than the emacs-27 branch. Date: Fri, 04 Dec 2020 20:51:52 +0200 Message-ID: <834kl1e75j.fsf@gnu.org> References: <877dpyzg9d.fsf@rub.de> <87czzpsyqn.fsf@gmx.net> <83o8j9eqwx.fsf@gnu.org> <874kl1spe9.fsf@gmx.net> <83blf9em55.fsf@gnu.org> <87zh2tr82r.fsf@gmx.net> <87v9dhr7i5.fsf@gmx.net> <838sadefiw.fsf@gnu.org> <87r1o5r22z.fsf@gmx.net> <87a6uty1qj.fsf@telefonica.net> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37492"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: =?iso-8859-1?Q?=D3scar?= Fuentes Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Dec 04 22:04:11 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1klIFP-0009d3-2h for ged-emacs-devel@m.gmane-mx.org; Fri, 04 Dec 2020 22:04:11 +0100 Original-Received: from localhost ([::1]:60138 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1klIFO-0003Bc-2H for ged-emacs-devel@m.gmane-mx.org; Fri, 04 Dec 2020 16:04:10 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41246) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1klGBg-0007s4-2x for emacs-devel@gnu.org; Fri, 04 Dec 2020 13:52:13 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:56876) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1klGBe-00065v-Le; Fri, 04 Dec 2020 13:52:11 -0500 Original-Received: from [176.228.60.248] (port=4216 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1klGBd-0006Xx-W9; Fri, 04 Dec 2020 13:52:10 -0500 In-Reply-To: <87a6uty1qj.fsf@telefonica.net> (message from =?iso-8859-1?Q?=D3scar?= Fuentes on Fri, 04 Dec 2020 17:28:36 +0100) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:260319 Archived-At: > From: Óscar Fuentes > Date: Fri, 04 Dec 2020 17:28:36 +0100 > > Stephen Berman writes: > > > emacs-27: > > > > system-configuration-options > > "'CFLAGS=-Og -g3' PKG_CONFIG_PATH=/opt/qt5/lib/pkgconfig" > > > > system-configuration-features > > "XPM JPEG TIFF GIF PNG RSVG SOUND DBUS GSETTINGS GLIB NOTIFY INOTIFY ACL > > GNUTLS LIBXML2 FREETYPE HARFBUZZ XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 > > XDBE XIM MODULES THREADS LIBSYSTEMD PDUMPER LCMS2 GMP" > > > > master: > > > > system-configuration-options > > "--with-xwidgets 'CFLAGS=-Og -g3' PKG_CONFIG_PATH=/opt/qt5/lib/pkgconfig" > > > > system-configuration-features > > "XPM JPEG TIFF GIF PNG RSVG CAIRO SOUND DBUS GSETTINGS GLIB NOTIFY > > INOTIFY ACL GNUTLS LIBXML2 FREETYPE HARFBUZZ ZLIB TOOLKIT_SCROLL_BARS > > GTK3 X11 XDBE XIM MODULES THREADS XWIDGETS LIBSYSTEMD PDUMPER LCMS2" > > Please correct me if I'm wrong, but overriding CFLAGS means that gcc > compiles with default optimization level, wich is -O0, hence you are > comparing unoptimized builds, right? No, because CFLAGS say -Og in both cases, which means the compiler uses optimization level slightly lower than -O1. > In that case, a tiny change on some often-used macro or function can > make a big difference. But I see no significant difference in my unoptimized builds of both branches.