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: Fri, 21 Jun 2024 05:25:43 +0000	[thread overview]
Message-ID: <87le2yq33c.fsf@posteo.net> (raw)
In-Reply-To: <5D08C90E-AE22-4AAA-B00D-F5B4C78727E2@gmail.com> ("Mattias Engdegård"'s message of "Sat, 15 Jun 2024 11:33:44 +0200")

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


Hello Mattias, sorry for late reply.

Mattias Engdegård <mattias.engdegard@gmail.com> 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× speedup between Emacs 29.3 and master,

Yes same here.

> which is nice but not quite your reported 16× 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.

-- 
Thierry

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

  reply	other threads:[~2024-06-21  5:25 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
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 [this message]
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=87le2yq33c.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).