From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Gregor Zattler Newsgroups: gmane.emacs.help Subject: Re: emacs empty startup time increased from v 27.1 to 29.0 by factor 3? Date: Fri, 27 Jan 2023 01:00:49 +0100 Message-ID: <87a624zw0e.fsf@no.workgroup> References: <873581tkc0.fsf@no.workgroup> <83pmb5i90e.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19933"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jan 27 01:02:09 2023 Return-path: Envelope-to: geh-help-gnu-emacs@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 1pLCC0-00051O-W2 for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 27 Jan 2023 01:02:09 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pLCBT-0002ks-67; Thu, 26 Jan 2023 19:01:35 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pLCBQ-0002kQ-UP for help-gnu-emacs@gnu.org; Thu, 26 Jan 2023 19:01:33 -0500 Original-Received: from mout.gmx.net ([212.227.15.18]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pLCBP-0004KX-93 for help-gnu-emacs@gnu.org; Thu, 26 Jan 2023 19:01:32 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=s31663417; t=1674777684; bh=gC9TatJRXOZBUqEXeFCxUGntGAQVB0eFdur8sBzwgPw=; h=X-UI-Sender-Class:From:To:Subject:In-Reply-To:References:Date; b=qGaCiDlefJXwPnRKuOcmBa0bRA8BfNZADbOucVWeqFQ/h+Yc/Xpa0DnbsYFNzhsdl nBdBoOA4tlBBWMuCJa8JTZyHFhPG4M64hSpYLdOEIUQd9xQxmfsyb/amMvdM5/3Z3/ UndMQQLYfjsrp7OD0BBbPMo6mnHNGb5yrh5cdKay6aJkKFPfYvn4i4OsTa4KGIDj1X hw58JrrUrRlnzOOyFEljnULykXk4LcsTV1VR292ZjzQdNZWRwnP4cYhaqj95wRZXHd U54JXDwy+Pc+AVoakOk1lmG7sm9vR92/xpEkao0e1UNJ2t4jBX19rYQWc+TO0sCOZp +0ixrp+uF8xvQ== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Original-Received: from localhost ([95.90.234.101]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MLi8g-1p3fIR3kZc-00HbvV; Fri, 27 Jan 2023 01:01:23 +0100 In-Reply-To: <83pmb5i90e.fsf@gnu.org> Mail-Followup-To: help-gnu-emacs@gnu.org X-Provags-ID: V03:K1:HkA20xDzBLh+LqPv+VxNzJMqyBzxWKuG/v5ZWQX6QrpUO7bsqJn LjzghW8+KaxEgfozbdYSF8THtMns0FEokgSbLV2UbYbX0rlEadFDUAJ1/BiuoF2kze0skDZ s7w2cNFnuSG0/bYqx82RyGsFH/4QCo+QXomJadRlQvNyoJWtAEzRU0PZufYNOQKCMLlovRM EWsSSEGgeHucOnDmL8XeQ== UI-OutboundReport: notjunk:1;M01:P0:as9YdPdvWMs=;yoa3P5MvM+Gdz6i4Phn3BcGaSdM CTvPAK+MIdw5WMzu2MeqHKhglO4Pg164wXOP48dEze9qJXs25d63mwnkQdTqm229RMjA6SLfg AeF8KxuE5MKRA2/+Sb+VS4ZTnQianLddZ6cvj/8lkr+j9nZ4qZ64ypAVq412sZrQZAk5ET0SV bWtP8gESyXx/T46deHvpnGVpNxnmn5XQHFuRj2q68AGKE9jDRETvL/lFHyfvdpAFHIIp5MyXO Nfn51cN/uYv3WKqQSS3/U3oJmc7elzO0/DXXjwFGFN83QjZmymybKS5O38s9IKeAkulE+VBWt EpbJY4gNJemwx0F8H3USv43rloXmch9wofWF1QQLAfeYK0B0aqyo7DMlJNUfwtycCeBCux3at xApgjMqERbiWO+GNtFVzhBn7AT3USTgXk6/2ztwsNwn51UY+1ZABL0Nt/4enMDehjAdI5SSwR /4s3u7/BjRtqm4RNI4L9Hr2ZV9SPioz5bbVN1A4lqkFqflr3a741DzcD+BcoPvSSlo6CDz6Ld hvP9ti9e7mBDqpnlQ6QmGLkAqi3vqVtaXmhAxskjqxKWSH6nqQKWH6mtit7stUgr80ZT2aRPd DEmSFEBWb42l7pvDSogts+6s12S0b0RO57Be/e2b1SHWIaCjifSKi73uXORMYiu6f6IMyBuIC zY2ip5ZOKhkCdlMI8FwIza6uwhruiZTnvtvTwH8RlaeFWrSi6MphKtK6lgUL2kdB02zqFlkrT CrMixUiWENmXClQjcg3YNwErNR0awMm5wusVE7HHbemyfic8TccT+W8zlPceC/o1YDjAZ18C Received-SPF: pass client-ip=212.227.15.18; envelope-from=telegraph@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: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:142529 Archived-At: Hi Eli, emacs users, * Eli Zaretskii [2023-01-23; 17:08 +02]: >> From: Gregor Zattler >> Date: Mon, 23 Jan 2023 15:08:15 +0100 >> >> time /usr/bin/emacs-gtk -Q -nw -f save-buffers-kill-emacs >> >> which starts emacs 27.1 as precompiled in debian / Bullseye >> and kills it again, a low time values on my laptop are e.g.: >> >> real 0m0,328s >> user 0m0,262s >> sys 0m0,058s >> >> >> while for emacs v29.0 the same command line achives low >> values like this one: >> >> real 0m1,007s >> user 0m0,847s >> sys 0m0,154s >> >> The 29.0 version is compiled with native-compilation >> support. Does this explain the differences? > > It could. Emacs with native-compilation needs to load all the > preloaded Lisp packages as shared libraries, as opposed to just > mapping the pdumper file into the address space in Emacs 27. To be > sure, build Emacs 29 without native-compilation, and then compare. So I did. The lowest values for the same command with a slightly newer Version which was built with --with-native-compilation=3Dno are: $ time src/emacs -Q -nw -f save-buffers-kill-emacs real 0m0,596s user 0m0,483s sys 0m0,105s while the very same tree build with --with-native-compilation $ time src/emacs -Q -nw -f save-buffers-kill-emacs real 0m1,082s user 0m0,902s sys 0m0,169s This shows: a) native compilation slows Emacs' startup (and shutdown?). b) Without native compilation support Emacs 27.1 is faster in this nano-benchmark than Emacs 29.0. Ciao; Gregor =2D- -... --- .-. . -.. ..--.. ...-.-