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: Fri, 21 Jun 2024 05:25:43 +0000 Message-ID: <87le2yq33c.fsf@posteo.net> References: <87zfs34csf.fsf@posteo.net> <86y17mkzn6.fsf@gnu.org> <87o78ikjwg.fsf@posteo.net> <87bk4btptb.fsf@posteo.net> <878qze62ja.fsf@posteo.net> <509D6516-0C15-4F2C-97F9-991C2B82B1B5@gmail.com> <875xuhpdkr.fsf@posteo.net> <875xua93em.fsf@posteo.net> <5D08C90E-AE22-4AAA-B00D-F5B4C78727E2@gmail.com> 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="19348"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Thierry Volpiatto , Eli Zaretskii , emacs-devel@gnu.org To: Mattias =?utf-8?Q?Engdeg=C3=A5rd?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Jun 21 07:23:52 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 1sKWka-0004r6-5p for ged-emacs-devel@m.gmane-mx.org; Fri, 21 Jun 2024 07:23:52 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sKWju-0003Be-KX; Fri, 21 Jun 2024 01:23:10 -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 1sKWjs-0003BV-Ea for emacs-devel@gnu.org; Fri, 21 Jun 2024 01:23:08 -0400 Original-Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sKWjp-0003kx-UY for emacs-devel@gnu.org; Fri, 21 Jun 2024 01:23:08 -0400 Original-Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 67374240104 for ; Fri, 21 Jun 2024 07:23:02 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1718947382; bh=nE/B7I1RpjxrD+5vl3PH7hsN+7FUheLHs/X6nEuJr+Y=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: Autocrypt:OpenPGP:From; b=WGnCPldiH9y08suaPUuYlK1j/vnrBja0M0W5BIIp05LTwv6SmEsrTH/6QGOnWOodS TfQyTUqmAd4gBy1KJop5koPdAoy0AxAWwepReXI3bHkjbiGMhvoCNKpYtOiE9wGWX+ X/Cbag+EpNzlXnXSiqRfLjz/BZ838tDVOZQQoe9cTofZ+9JAg+aM0yx4VnpEFjUaAK M2+i8aYejpb6+3DYnzHIoie6A7wbE9ltcVVzEJEOzz5hk+5caVqXN3pHslC57Z6Dhp TF78reZ08fXhmodPoGUmDbSRQ5St1J9ZSOExduOtZ6RB/KeRFSkQrANLYkylGJ8ZxB JuJXTjEfe2Q7Q== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4W55NJ6434z9rxB; Fri, 21 Jun 2024 07:22:56 +0200 (CEST) In-Reply-To: <5D08C90E-AE22-4AAA-B00D-F5B4C78727E2@gmail.com> ("Mattias =?utf-8?Q?Engdeg=C3=A5rd=22's?= message of "Sat, 15 Jun 2024 11:33:44 +0200") 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.66; envelope-from=thievol@posteo.net; helo=mout02.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:320352 Archived-At: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hello Mattias, sorry for late reply. Mattias Engdeg=C3=A5rd writes: > To make progress we need a bit more precision. As a starting point I'm > attaching the benchmark that I used but it's pure guesswork on my > side. It shows a 1.3=C3=97 speedup between Emacs 29.3 and master, Yes same here. > which is nice but not quite your reported 16=C3=97 improvement. I think what make such a big difference is when saving hash-tables instead of simple lists. With: (defvar my-big-list (make-hash-table :test 'equal)) (let ((i 0)) (while (< i 10000) (puthash i (format "This is %d" i) my-big-list) (setq i (1+ i)))) (setq psession-object-to-save-alist '((my-big-list . "my-big-list.el"))) ;; emacs-29: "0.758 s elapsed, 0 GCs, 0.000 s in GC, 0.758 s non-GC" ;; emacs-30: "0.016 s elapsed, 0 GCs, 0.000 s in GC, 0.016 s non-GC" > This is with byte-compilation only, no native compilation. Run it > with > > emacs -Q -batch -f package-initialise -l psession-bench.elc ^(z) > If you are unhappy with this benchmark, please propose an amendment > that reproduces the effect you observed and that we can run, and which > does not depend on your personal Emacs settings. I will try to come up with a version saving (larges) hash tables as soon as possible. Thanks. =2D-=20 Thierry --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQHHBAEBCgAxFiEEI9twfRN7r3nig/xwDsVtFB0W75MFAmZ1DtcTHHRoaWV2b2xA cG9zdGVvLm5ldAAKCRAOxW0UHRbvkwYMC/wJolDAP72xosp462R3REbcsKTPfEF7 i/xan+CcCrivyOh9QtfzSptR+BLNUwE6Lnemh7y8L23RtjJHfa4A1yCY/sbvI12H YWNrcjQerzlF02j/vTcxyAKC7aIYM3aHruFjjJsu8mvdvt8kWpCow9gClEasnLw1 iiqnYlbRiIrGDdqonzXp2dxjBaqtbttLPD32eiPyiMDC8LAVoIOJSsop4Dg49Yh6 9fZvHAVSwbFKSBjHDRYZL1Fe/8l4LJcrBwXnmKtrg+V+SyYbtQv9e+m5vKua8/eH ZtqhX4nCTYKEGZR1MibO3HQoXWKnNfp+SKlQsM5THkyyQmxf548pSq1wn8ivYUSr DhKkluKOoTrmL7gwiZxDG+8ROVfFLOiXWxizc4sDuD61tV3Aj2z7gHRa51dJ+0c7 hXnc8vGwqk3Hf/FUE5i4qJsUHzrlHswoLV0R4xO3eJU+1cwC/LwwQLnjWAZ+ebpo R/ls1hm5PTBSWGrY58ygbPwULpe4+Ax4QG0= =VJws -----END PGP SIGNATURE----- --=-=-=--