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:33:40 +0100 Message-ID: <87lfeds1cb.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> <837dpxedmz.fsf@gnu.org> <87mtytqza8.fsf@gmx.net> <87im9hqwov.fsf@gmx.net> <875z5hxpqe.fsf@telefonica.net> 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="7099"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: emacs-devel@gnu.org To: =?utf-8?Q?=C3=93scar?= Fuentes Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Dec 04 22:42:53 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 1klIqp-0001jO-Vd for ged-emacs-devel@m.gmane-mx.org; Fri, 04 Dec 2020 22:42:51 +0100 Original-Received: from localhost ([::1]:60562 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1klIqp-00041F-0L for ged-emacs-devel@m.gmane-mx.org; Fri, 04 Dec 2020 16:42:51 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57474) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1klIiE-0005Ra-LU for emacs-devel@gnu.org; Fri, 04 Dec 2020 16:33:58 -0500 Original-Received: from mout.gmx.net ([212.227.15.15]:35033) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1klIi7-0006s1-1A for emacs-devel@gnu.org; Fri, 04 Dec 2020 16:33:54 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1607117627; bh=fjqNNhcdzKjOY7wVfWXy0p7Kk1ORjvclyywvs/iSync=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=aQdJ6F5+Xn/yiOFSPFAazERV400o6ZEPzIKRQmw8mbH5CFbiBmbWyJ/usRJmHsoCI EdJ/ku7w3O5LbHKs7kpqDP/Vn9bkDfO7ZzJkg3f0f7u8+abl/4kwEFV+LCeiytdCSq qiUgDsvU1rNCnK19YRDKj13rtAiMnHYjIjh89FtE= 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 1MXXyP-1kfZPo2ivH-00Z1cC; Fri, 04 Dec 2020 22:33:47 +0100 In-Reply-To: <875z5hxpqe.fsf@telefonica.net> (=?utf-8?Q?=22=C3=93scar?= Fuentes"'s message of "Fri, 04 Dec 2020 21:47:53 +0100") X-Provags-ID: V03:K1:Xs4yVBk7/5TYu4ObYEWgJ0hzsJ9mvi7eGUmCKhfgqN/lEE+4aB1 0cKaU2BC7sSfOTrb7XCErZoPF8N0uekWXVX4RBzUDr/cwnoGy6F++gSDoF11e4prmSsaINA FXPnArpN5uudlB8BSFqMcA0cplFMsbiz8zaIxEu+A1lscOt1pZmbGA84G6lOSUBmYsahHUi PXDnNvwignJUxaJ3jPMWQ== X-UI-Out-Filterresults: notjunk:1;V03:K0:E+JGHMWpXYQ=:mrTNPHFDh9phnh52Jiah/0 teeWfnbec2mkfFx+hfuUz/aWXw8GO0qrEqt/ZqVYBKHaaekYSVUcMDonryfCTuqqEYUVPuzBg x7LSaYJ8/50GLvlObg/qSnquRZZ7MVjvW+d9WW5KXlBnAyfymYvbnCp/FC9AzGAIyoAjb93Mx Lm4nhhKUv8qJc7/xy4QZSC1IdM491T8KiHv8aPxeRVg1AHSQ+TpunSb57abE8cb+CJ0hlg81o IRPsmFdOOI29NPMqF3ArCKKi9Pie4iwrg9Q++TIlZv5D9F/Gg802I6rUsXDU9yaut6uLhV2qr FDLGYNCJ6wW8/1ymD1zoWIFlaVUPNS2+ALp3TWtocU+AcWWAD+eI/cZK0zuR0/ulAaXdDe5qg qxLXuJ3oXUTI1Z6feHo/oThjs2AgI3s3IcimTCTM92MzaxTvXxTPWi6l5ZLjqe1Crk6VwiE98 rNCP58I7sU4dy8qGxeAFIAU50tU3BslzmdFFx+N3Rqykx3o4QOmYY8c8sCxZYowslcrUPCxLF +MRvZJaXse1oyuyWM75fau+5MMCg4bldgI0Pp0L8qgeFq1deQnwb7xqFqFcV6StsakCCYFxIr cYwR6TPkFYKes6Vo+4bsPWRprcLpf5SqAXE9pISMl23GxnCmibj1Ao1lGGunX79E/GjjdhR9h awf6hVRPR62kHXOktnuCfEwtZmGaucOnF6BJO+rbuuoDpO7GP3VvwHS9ctFqgpnQjOMU7Apx8 +Txk8XJa1b5DIoTenUNtAi3eeRvBorBS1soTcxkagtf9XbLuOY9CsMRedrtoocq/HLUDnX22 Received-SPF: pass client-ip=212.227.15.15; 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:260330 Archived-At: On Fri, 04 Dec 2020 21:47:53 +0100 =C3=93scar Fuentes wrot= e: > Stephen Berman writes: > >> Well, I went ahead and configured emacs-27 --with-cairo --without-xft, >> rebuilt and ran the benchmark, and it still took ~60 seconds. I've >> attached the profile because it is considerably longer than the other >> emacs-27 profiles, though in general it seems similar to me, but maybe >> an expert will spot a significant difference. > > What happens if you build with CFLAGS=3D'-O2' ? Gregory Heytings found the answer: I bisected this, and the origin of the regression is commit 365dad197bac5deec9244fd9c189d23c46c99b31, which changes the default to "use 'static' instead of 'extern inline' [in C headers] because 'static' typically has better performance for Emacs". With -Og or -O0, the benchmark takes 67 seconds, with -O1 or above (-O2 is the default) it takes 25 seconds. Steve Berman