From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stephen Berman Newsgroups: gmane.emacs.devel Subject: Re: The Emacs master is much slower than the emacs-27 branch. Date: Fri, 04 Dec 2020 22:37:59 +0100 Message-ID: <87h7p1s154.fsf@gmx.net> 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> <834kl1e75j.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36188"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: =?utf-8?Q?=C3=93scar?= Fuentes , emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Dec 04 22:40:17 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 1klIoK-0009K8-KN for ged-emacs-devel@m.gmane-mx.org; Fri, 04 Dec 2020 22:40:16 +0100 Original-Received: from localhost ([::1]:54194 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1klIoJ-0001Bb-EM for ged-emacs-devel@m.gmane-mx.org; Fri, 04 Dec 2020 16:40:15 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58430) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1klImJ-0007xw-Bc for emacs-devel@gnu.org; Fri, 04 Dec 2020 16:38:11 -0500 Original-Received: from mout.gmx.net ([212.227.15.18]:57581) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1klImH-0008KN-Gf; Fri, 04 Dec 2020 16:38:11 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1607117887; bh=r8dGIEWBox5R2C201KqJShiBlhGLBhUQJ2tIkJGbE+U=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=UeFixHTsigdKSa8FM55PGc4pYXu3p+INVuVs4dTfa1OvHIJOJPvBRAvUtmAOURKZL 0PnQehXsM+X0412sQdcUEoLPTC3vnkmU/PxVGsH/6Ya3XX/hfx8v9jyg5FA/7SNuLl 4x6Kt7CC2YQ7eKsyVu6whmLpKIXiowiFVwItCxGI= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from strobe-jhalfs ([178.6.218.210]) by mail.gmx.com (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MnaoZ-1kM6Uk0AQn-00jZTe; Fri, 04 Dec 2020 22:38:07 +0100 In-Reply-To: <834kl1e75j.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 04 Dec 2020 20:51:52 +0200") X-Provags-ID: V03:K1:M9aMjqhzx4M721tbTYVXBOK7Je/JehTcM16thM8EDeUXMwjp1k0 M9p27O9AVJvCCk9ju5PUMj3S1FtFh3iq41sCSTrm8QV1A+Vapd1zyjZ0kI3JshzC8PvltdW WElVRpaz6FQJMMtRw3T2zykCgHnr5wN8FGL5Cl/PbHCMEmHKqCL58tBYvWZJJHk/N43uq9f SV1oZF4aU9xgp5iHTxsRA== X-UI-Out-Filterresults: notjunk:1;V03:K0:hy6n79A5rgo=:qmQnydgtGxq36D5IjNRvJ+ ph53b3/4PRpzmAbWimIBbAK8kspH+A24D6lZNq9niwSLnLg1ZXvh+ZBsoEOn0hWFQVV8QD8+e uoC0KcvyhNUjMvNmFY/CLmUxC9/aUE6KWVApeE98LDQagNM8lF7vZKf9pV77S0g9xoGi6FIhS VKRHipMwahHHvTypVPz4QJ5xdetDWbpUq7w6aOXjWVkszNDmQqYnChzWGMKFR8fK8/fUInn2I Y8EqdmTsSrVPD7ApetIECK85hm23x5OAtq6QdaRwkVMA3vcF1COzxZyDqNymAiRaOWBKIS++8 ge0GeyRvvqIKYobuCjOGeqXy8a0BWcd+Tm0sFCvefnD95cE/AkpUrrk35k8i8TSlJX2UZjK6+ 47PhHhUhd3a5GwFKueOmMxmgMp3BzfvrnPSoRCKWoHGYoyGTJdT4wbQI8Jm+XdbPhK/w9SRbT cD6qKy4MGX/2zfMFnlCSydVwv9RJCzXmXa2Lp668cPMNxEZJVDERfV3e8WmApLldMOdl3t8/c yuTsoIXND2pe24bAuRUpr8zXMZRhbqmt/X5GGDedgHBpPTRjcFNYPblAS0Nro7IphKF3g+y7P dhHaAH33tAq725up63FKudXWXgpjwsZVWvd5M4OuZqYG8WwlFI29ViGL1uRtKnsfb90SWl/Te Nsdj95954CvKhHEAsWyIKlUwhAGgraIuahny6fxddyetPAgJ+hduzuK8NG76UlF/jcd7weDNj VQUc8DipcpWs/dCUv+EDYH+EMf+bG1IvTp4NkT6rVHmpMfs3SeBV7QTrMx+47LxabiBaOslg Received-SPF: pass client-ip=212.227.15.18; envelope-from=stephen.berman@gmx.net; helo=mout.gmx.net X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:260328 Archived-At: On Fri, 04 Dec 2020 20:51:52 +0200 Eli Zaretskii wrote: >> From: =C3=93scar Fuentes >> Date: Fri, 04 Dec 2020 17:28:36 +0100 >>=20 >> Stephen Berman writes: >>=20 >> > emacs-27: >> > >> > system-configuration-options >> > "'CFLAGS=3D-Og -g3' PKG_CONFIG_PATH=3D/opt/qt5/lib/pkgconfig" >> > >> > system-configuration-features >> > "XPM JPEG TIFF GIF PNG RSVG SOUND DBUS GSETTINGS GLIB NOTIFY INOTIFY A= CL >> > 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=3D-Og -g3' PKG_CONFIG_PATH=3D/opt/qt5/lib/pkg= config" >> > >> > 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" >>=20 >> 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. Doesn't -O0 mean unoptimized? But Gregory Heytings said that -O0 suffers the same performance hit as -Og in emacs-27 but not im master, which your timings seem to contradict. What am I missing? Steve Berman