From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ergus Newsgroups: gmane.emacs.devel Subject: Re: The Emacs master is much slower than the emacs-27 branch. Date: Thu, 3 Dec 2020 22:09:19 +0100 Message-ID: <20201203210919.o3u5u2vkbjtuutiy@Ergus> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="10603"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Alan Mackenzie Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Dec 03 22:10:20 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 1kkvro-0002fm-Bn for ged-emacs-devel@m.gmane-mx.org; Thu, 03 Dec 2020 22:10:20 +0100 Original-Received: from localhost ([::1]:45586 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kkvrn-0007fb-EE for ged-emacs-devel@m.gmane-mx.org; Thu, 03 Dec 2020 16:10:19 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50072) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kkvrG-0007F2-GJ for emacs-devel@gnu.org; Thu, 03 Dec 2020 16:09:46 -0500 Original-Received: from sonic311-14.consmr.mail.bf2.yahoo.com ([74.6.131.124]:43285) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kkvrC-0006Rr-UP for emacs-devel@gnu.org; Thu, 03 Dec 2020 16:09:45 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aol.com; s=a2048; t=1607029777; bh=HzrriN0pJH8zzgfHaDO/FlN/ZqTOYLr8BxD8Hygx9wY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From:Subject; b=QYJyIh23s8HD8q2x451mVfIm+AKx+ab6jmz4t8w3TKjWn7GC+IlJTEiPH2NHk1ijT7hfEdR//wMZWhzu2IHXigUnwuGTL/ghPDhRZbPxp3SSnWNrfLfLY6Ph7JLLoiD2NuIj2B0ndqtvPv/e3H+TCYoOZ3sWYbOY5sUH7lqM2h8iVc/GHO6X/gxlox3K7kiRu/FNtK406a4tB/Q9HYzhFz21i7eLnYEUj38NtluEVfQJkPbjRCzvAl+NmK7UErM6CiZsnqOW9fm30eBgmnhEczPIYN8HOFh2kE24kiVcghRUyNLhotWauXJaaZs1QioH6ICWzMj4rSAX82sgdpxn6A== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1607029777; bh=z3qBoL3z3qEsWgF+dxHyJofrc/JAJcKrnO4mWpFfdLT=; h=Date:From:To:Subject:From:Subject; b=dc2WXgxXq6nQ2UWk0j9Xk4sy0z1xmp6jssTi6IX8fvqyyB/aXcg/6EtqSS+gacPrbLwCFZ502y0sf2OlyInHVgGqNv9lc9rwt6TmtvWVJqH5yc11OwE87yyU1OWfHLfr/20vBmDLLZIRp5bzKB2ACb3rT817hahO6X+Jj9/TjbIFjmzEZEjxPJHSrEisQzD8/2dC7Drlykao7Er8of6D4dggtggRjrm1yeS+NzXVdyAPtZoDOixD8+ZOVpyChAhahH4CJyUiOCwSvFeQGOAip97NgLZlrISWG0donRE6IA13Ol9d59N/3kCFUTNylI/FX0JAJxOP5aN2lF8D2bsbfw== X-YMail-OSG: IMT9BfAVM1nhnqUmrJqX9ZDM8muZRsHCtCBIHjsKtqhd1SAlV31DWdVYC.BU64G 8SfBXhAcoYSNOIQsnPsAwCxDw9w3t_CPr1qdF54oAxlK7QyPFY6VtJAlgeOSaQ1crmvXMmCK88Yx KfEr9QNM.OdQ5eKwPsG97zCp4.veNHLlAgsniprTcSLS_XLdRp0BTAsaO_keBm5KrqBw9jITJB0W BF5Z9PX0GmGR7XFb7mqiZdMDsRi_Jlm38OmEt.iB0_Cvxi2C3E5mUFMVp8PCGKTHyvlNPMLXZPR5 TseejrHM4KROF0sJqWp.yMHnkwa4FhGb6881H_TzAa4UwpWfNivZZjuzght9OEZu7d5AnSEFXEFf YjKCrV_l_rUpVgNzsDXZJCFNTPSY6j2fUybpDUfXlaqL8NUlOv9173Me_tu8rxCHANUhARR7UJJv ni1mbUYu9PWmaizv3Lx.GSjciczxK51FQF5yVIVWNvdSHDbiVzdeNDt6Y3m1.Qz3MvzSAL0Wjv4w F1RZ2Jcpxuva.HCmIc9u5iLtIlFKWnrhNLDdRoGoUTCQKXNXBnPbH9n2B2Q.4H38I2albBaBFiBu 1EJ455uzCf_A8ToqmFhTX2RuYFZxjX5jo5wJB1dk1N0BGsvwAgQ9WgW2gb4WTYqH8YBK_.h52HaA XNGHkqXUlEDWDGXRCvm1VEAZTL9Gz47bMKi2jPLSNasA1ZWkY7aJAxJk2wr1nr8py5w1Bupd4JGz PeYnJGms9S2yU0lbKWsC7HH0phslytLwHntYD_xZ1o2vyoA9NXLCKLBeySeTA_VN_cSAPCSCwNPI 6bMPpGjeo5iTJrNcdRnOpSdZYfPBP.OhkyylTNtGO1 Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic311.consmr.mail.bf2.yahoo.com with HTTP; Thu, 3 Dec 2020 21:09:37 +0000 Original-Received: by smtp401.mail.ir2.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID d8cd66717f88a4d214efc6b043d550cd; Thu, 03 Dec 2020 21:09:34 +0000 (UTC) Content-Disposition: inline In-Reply-To: X-Mailer: WebService/1.1.17111 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.aol Apache-HttpAsyncClient/4.1.4 (Java/11.0.8) Received-SPF: pass client-ip=74.6.131.124; envelope-from=spacibba@aol.com; helo=sonic311-14.consmr.mail.bf2.yahoo.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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_NONE=-0.0001, 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:260249 Archived-At: On Thu, Dec 03, 2020 at 06:15:30PM +0000, Alan Mackenzie wrote: >Hello, Emacs. > >I've got pretty much up to date copies of both the master and the >emacs-27 branches. > >When I run my customary benchmark (see below) on master's src/xdisp.c in >master, it's taking around 34s. On emacs-27, it's taking 22s. > >That's a massive slowdown. Does anybody know why this is happening? >Should I raise a bug report? > >The benchmark I run is this: > >(defmacro time-it (&rest forms) > "Time the running of a sequence of forms using `float-time'. >Call like this: \"M-: (time-it (foo ...) (bar ...) ...)\"." > `(let ((start (float-time))) > ,@forms > (- (float-time) start))) > >(defun time-scroll (&optional arg) > (interactive "P") > (message "%s" > (time-it > (condition-case nil > (while t > (if arg (scroll-down) (scroll-up)) > (sit-for 0)) > (error nil))))) > >On a freshly loaded buffer, do M-: (time-scroll). > >-- >Alan Mackenzie (Nuremberg, Germany). > Hi Alan: I have observed the slowdown, but haven't have time to profile it properly. Maybe adding to your time-scroll function (profile-start 'cpu) just before and (profiler-stop) at the end to see the profile-report could provide useful information. The other thing I would check may be to compare the values of gcs-done in both cases. Best, Ergus