From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Thierry Volpiatto Newsgroups: gmane.emacs.devel Subject: Re: Emacs-30 performances Date: Mon, 03 Jun 2024 17:37:03 +0000 Message-ID: <87o78ikjwg.fsf@posteo.net> References: <87zfs34csf.fsf@posteo.net> <86y17mkzn6.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26074"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Thierry Volpiatto , emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Jun 03 19:35:44 2024 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 1sEBax-0006WM-Up for ged-emacs-devel@m.gmane-mx.org; Mon, 03 Jun 2024 19:35:44 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sEBa1-0005iD-AX; Mon, 03 Jun 2024 13:34:45 -0400 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 1sEBZx-0005hB-OL for emacs-devel@gnu.org; Mon, 03 Jun 2024 13:34:42 -0400 Original-Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sEBZv-0001a9-RG for emacs-devel@gnu.org; Mon, 03 Jun 2024 13:34:41 -0400 Original-Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id E6FA6240028 for ; Mon, 3 Jun 2024 19:34:35 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1717436075; bh=bM8k8aJnXewITOnoJd9v0ldr5Cc9zGuuNCsatHbRB+A=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: Autocrypt:OpenPGP:From; b=MWRuG5WqcwzValhDQkjCLWqS14st8UTtx/nlHV2NnM9+TIDGxdRdn2D3/M75Nf+Fa lpgPwZMAe2G9g89qwSUyfHKABzfRKF3Lhr034rbqr7KzFEsAfx/X0KIeMUII3z7AWQ j4VMP0i8JjKFU3iI9QyniuY6n42MOjRjgM1J24n1WSUrXiI7tzK1fAcjtl6YcISlZl jGstxnQR3SuhnnM5SNvqiFOYGfkioYwV54h5GEPAkWdcFp5J+Oma2yWqVAEteW8E0Y TFhGu8BCd98HjroVjYFRI8XTjBdpX+segkfSMIQdV4wt1+Z+GcXqHN+ofnLsRP1miD 5W6fuJzQ/0bcA== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4VtLSp45jpz9rxB; Mon, 3 Jun 2024 19:34:34 +0200 (CEST) In-Reply-To: <86y17mkzn6.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 03 Jun 2024 14:57:01 +0300") Autocrypt: addr=thievol@posteo.net; prefer-encrypt=mutual; keydata=xsDNBF8ylcIBDADG+hy+zR6L4/vbdDDZuSaMmSrU3A5QZJpeBCvxTr7MpzzruZbhLPW1K3R6N2MA edi8Y+C8o27FVRIjpdbaKMGu9je7JV/TbUQYo3SOwCK1vM4LUn4V6ZLzSYkuiEt4eyMoiDdyvN0p kcK6P9x9DCetcEVszXzQg+yzCVrQ2hXWDXWT4M18EC3wtO7RHPouMqGiwBFhBAYErCqFWFxQHkfb tG/4yGyJ58rglb65O3qijjMWvYwcWZun9/7qm8Z4/4mHopmo2zgU+OrptnLSZfkZGz3Y7Uf452xQ GVq0Fv75NPvQru7y+DYVhuVXXyAmGxt+vf4rIiixMBbhKEPjcxEPAa2LTzex2IsTZR+QVG9uDnqC WcgaOEQ58fzXNvNhtwwF/Rgio2XWAJVdmFWS59/k9W58CIUSNKBMZh2XeGdEmtHvDtCxW3z6FJha 36RzOM3fMNNiAGdFZJA84gcdloJR+sHCDTTPT3784fjr+V8An7sI581NGFzkRQqPvEQCZbUAEQEA Ac0SdGhpZXZvbEBwb3N0ZW8ubmV0wsEOBBMBCgA4AhsDBQsJCAcCBhUKCQgLAgQWAgMBAh4BAheA FiEEI9twfRN7r3nig/xwDsVtFB0W75MFAmL3HCoACgkQDsVtFB0W75OVEAv/f6XxmtIFz08fUb8h Bp/zJP6IC4/rhhh+0GMRIRzLN8DK0jV8JCzYdFHiRJOy2lNIOpmrrCmjRRxferc2G42+ePFIsslx hU46VSz1Z83NwIG3mpdYNV5WUTUdgzxExHTNTFCd7NKv0nlHKQaA OpenPGP: url=https://posteo.de/keys/thievol@posteo.net.asc; preference=encrypt Received-SPF: pass client-ip=185.67.36.65; envelope-from=thievol@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:319798 Archived-At: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Thanks Eli for your answer. Eli Zaretskii writes: >> From: Thierry Volpiatto >> Date: Sun, 02 Jun 2024 14:52:48 +0000 >>=20 >> I am using my own package Psession to save my emacs sessions, variables, >> history, all my buffers etc... In all previous emacs versions since ema= cs-23 >> saving all when quitting Emacs was taking between 3 to 5 seconds more or >> less, now with Emacs-30 it is nearly instant, incredibly fast. >> I was wondering what have changed to reach such performances > > Hard to say without knowing what your package does to save the data, > let alone see the profile in the previous versions. Each object is saved to its own compiled file. The relevant part is this: =2D-8<---------------cut here---------------start------------->8--- (with-temp-file file ;; Fix Emacs-30 lexbind warnings.=20 (insert ";;; -*- lexical-binding: t -*-\n") (prin1 `(setq-default ,obj (eval-when-compile ,obj)) (current-buffe= r))) (byte-compile-file file) =2D-8<---------------cut here---------------end--------------->8--- Perhaps this commit? =2D-8<---------------cut here---------------start------------->8--- commit 9bcc9690a8076a22398c27a7ccf836ee95eb16a2 Author: Mattias Engdeg=C3=A5rd Date: Tue Jan 30 17:55:19 2024 +0100 Eliminate lazy bytecode loading =20=20=20=20 The obsolete lazy-loaded bytecode feature, enabled by `byte-compile-dynamic`, slows down Lisp execution even when not in use because every call to a bytecode function has to check that function for laziness. =2D-8<---------------cut here---------------end--------------->8--- > But maybe this is commit bf00762745c (bug#70036)? Or maybe commits > aa0037aaf7c and b7a737ef49e (bug#66117)? I don't think these commits are related. Anyway thanks and congratulations for this improvement. =2D-=20 Thierry --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQHHBAEBCgAxFiEEI9twfRN7r3nig/xwDsVtFB0W75MFAmZd/z8THHRoaWV2b2xA cG9zdGVvLm5ldAAKCRAOxW0UHRbvk5L5DACxX6ZmEfOA1FUSh5XbiJOtyUny9lzU L3mlam4ryBbi0yOGRHgS/e8MY7snkpy+N4MXBUOPPfeW6gmDDWRtAxKmC2mHPeBp XaSqlstg0or+EIgKXiL2CHNqWxb9mBGrZbTFkikhfKMIkkqGtkVLi5I9DZXtiVdy jCm0Nt+UZ+HId9ZWN+Mb++u5EsSuD9LpQjvBeXrxp4OnOREQvHAMCg3tvGziT+SH USVYynwpRUfoUDrywkQSplqgsEeRfsu+Ut6k9yp7zrNcnt9M8VwMbyUDVAqBo2G/ ppi8dDB6lhtXRdE5OoSRz3fHRqm40SuSJEDLZzwcLXVQENPfj4ZpFcFh22nWEsKy f3crj49tNAnMp5wHI+pHreVGgM5RfEh8vyvor/NVi45VltkrReyDqA7YYI0Z+ecM bXfB+fVXjs/d88wqistkp0MahOX8aWNsAPcxXm5zdgvd0cVK9F1/0WBhkXL9S7xe z+MxgKIajr/e93E79vv8G6/tv+R7xKOm2sM= =MzEP -----END PGP SIGNATURE----- --=-=-=--