unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Thierry Volpiatto <thievol@posteo.net>
To: "Mattias Engdegård" <mattias.engdegard@gmail.com>
Cc: Thierry Volpiatto <thievol@posteo.net>,
	 Eli Zaretskii <eliz@gnu.org>,
	emacs-devel@gnu.org
Subject: Re: Emacs-30 performances
Date: Sat, 08 Jun 2024 15:30:24 +0000	[thread overview]
Message-ID: <87bk4btptb.fsf@posteo.net> (raw)
In-Reply-To: <A998EB9C-9E68-4A17-B0F0-EB2577C144C6@gmail.com> ("Mattias Engdegård"'s message of "Mon, 3 Jun 2024 20:23:10 +0200")

[-- Attachment #1: Type: text/plain, Size: 2269 bytes --]

Mattias Engdegård <mattias.engdegard@gmail.com> writes:

> 3 juni 2024 kl. 19.37 skrev Thierry Volpiatto <thievol@posteo.net>:
>
>>      (with-temp-file file
>>        ;; Fix Emacs-30 lexbind warnings. 
>>        (insert ";;; -*- lexical-binding: t -*-\n")
>>        (prin1 `(setq-default ,obj (eval-when-compile ,obj)) (current-buffer)))
>>      (byte-compile-file file)
>
> We have made small changes to several of the moving parts here but it's unclear how they have the outsized effect you reported.
>
>> Perhaps this commit?
>
> I wish! But it could be useful to find what actually did. If you had
> the time to bisect master to find it,

I finally found:

--8<---------------cut here---------------start------------->8---
;; ae8f815613c  Sun Mar 24 14:37:03 2024 Update files for Emacs 29.3 Eli Zaretskii  (tag: emacs-29.3)
(benchmark-run 1 (psession--dump-object-to-file-save-alist))
(8.715188143 0 0.0)
--8<---------------cut here---------------end--------------->8---

--8<---------------cut here---------------start------------->8---
;; 83a6e80d66a  Mon Mar 25 03:13:44 2024 (byte-optimize-form-code-walker): Simplify a bit Stefan Monnier 
(benchmark-run 1 (psession--dump-object-to-file-save-alist))
(0.259306895 0 0.0)
--8<---------------cut here---------------end--------------->8---

So it is the first change after emacs-29.3 tag, done by Stefan, even if
small, it makes a huge difference as you can see above (not sure to
understand why though :-)).

--8<---------------cut here---------------start------------->8---
diff --git a/lisp/emacs-lisp/byte-opt.el b/lisp/emacs-lisp/byte-opt.el
index f6df40a2d9b..54997205edb 100644
--- a/lisp/emacs-lisp/byte-opt.el
+++ b/lisp/emacs-lisp/byte-opt.el
@@ -482,9 +482,6 @@ There can be multiple entries for the same NAME if it has several aliases.")
          (push name byte-optimize--dynamic-vars)
          `(,fn ,name . ,optimized-rest)))
 
-      (`(,(pred byte-code-function-p) . ,exps)
-       (cons fn (mapcar #'byte-optimize-form exps)))
-
       ((guard (when for-effect
 		(if-let ((tmp (byte-opt--fget fn 'side-effect-free)))
 		    (or byte-compile-delete-errors
--8<---------------cut here---------------end--------------->8---


-- 
Thierry

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 686 bytes --]

  parent reply	other threads:[~2024-06-08 15:30 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-06-02 14:52 Emacs-30 performances Thierry Volpiatto
2024-06-03 11:57 ` Eli Zaretskii
2024-06-03 17:37   ` Thierry Volpiatto
2024-06-03 18:23     ` Mattias Engdegård
2024-06-04  5:23       ` Thierry Volpiatto
2024-06-08 15:30       ` Thierry Volpiatto [this message]
2024-06-09  6:41         ` Thierry Volpiatto
2024-06-09  8:19           ` Eli Zaretskii
2024-06-09  9:45             ` Thierry Volpiatto
2024-06-09 11:39           ` Stefan Kangas
2024-06-09 14:07           ` Mattias Engdegård
2024-06-09 17:38             ` Thierry Volpiatto
2024-06-10  5:32             ` Thierry Volpiatto
2024-06-12 17:03               ` Mattias Engdegård
2024-06-15  5:32                 ` Thierry Volpiatto
2024-06-15  9:33                   ` Mattias Engdegård
2024-06-21  5:25                     ` Thierry Volpiatto
2024-06-21  9:33                       ` Mattias Engdegård

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87bk4btptb.fsf@posteo.net \
    --to=thievol@posteo.net \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=mattias.engdegard@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).