From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?utf-8?Q?Mattias_Engdeg=C3=A5rd?= Newsgroups: gmane.emacs.devel Subject: Re: Emacs-30 performances Date: Sat, 15 Jun 2024 11:33:44 +0200 Message-ID: <5D08C90E-AE22-4AAA-B00D-F5B4C78727E2@gmail.com> 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> Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.15\)) Content-Type: multipart/mixed; boundary="Apple-Mail=_871FD715-246C-4910-A6CA-8C64F107956D" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="356"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Eli Zaretskii , emacs-devel@gnu.org To: Thierry Volpiatto Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Jun 15 11:34:35 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 1sIPnv-000ASJ-2C for ged-emacs-devel@m.gmane-mx.org; Sat, 15 Jun 2024 11:34:35 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sIPnD-00089X-JM; Sat, 15 Jun 2024 05:33:51 -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 1sIPnC-00089M-FE for emacs-devel@gnu.org; Sat, 15 Jun 2024 05:33:50 -0400 Original-Received: from mail-lf1-x12d.google.com ([2a00:1450:4864:20::12d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sIPnA-0000lf-QD; Sat, 15 Jun 2024 05:33:50 -0400 Original-Received: by mail-lf1-x12d.google.com with SMTP id 2adb3069b0e04-52c819f6146so4069598e87.1; Sat, 15 Jun 2024 02:33:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1718444026; x=1719048826; darn=gnu.org; h=references:to:cc:in-reply-to:date:subject:mime-version:message-id :from:sender:from:to:cc:subject:date:message-id:reply-to; bh=8NPxBelwG0oWM3sIgaIcqR7uUohHtapiBTpouV8+kdM=; b=DU5Y5QayrMrWUyyHh7/k/QewsnRoE5NAkDrax2x3e5dnSonJm8I/lJbM49PeDRLqa1 6EcHvjjxz4zvx5DGvUp4jkSlxV/+yBBAOTPwxdkLSIJSIJ7KYfx9sxw/quYis5SjEIVj BZATaBI988fwiI9t7TbnkmnfQ+IbNp0Kd+RH0jfHEpp6bDvogQ1igWwRVsPTOtAo4XNM ez8tQ8Yyz/UD/SNNZR3gnuMlNTTvjOkW6GPAFqLU0L9/+z7kgvVGOFDzF/DZ6QQFyePt iTzEGlcLOPhU0hnynOYXZY6BYgUWxdMpZemkKw/zI8MeTgvxD1fqhUG4RI1n2uOfa6x1 Lxfg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718444026; x=1719048826; h=references:to:cc:in-reply-to:date:subject:mime-version:message-id :from:sender:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=8NPxBelwG0oWM3sIgaIcqR7uUohHtapiBTpouV8+kdM=; b=BWy1ECpYtMb8tzNuP0MneIlKqGG875KWhdGhYo2kzJhcXBRMdNMtoBTj9gMIhFq/4T oQPd0bl9mwwyXt/x3EFU9twcBkdic6soeaXrYtMFbWCGNabhJtLj4Em8CGHyGRwDVh1C 2ZGX7QylbBjYY6JVuotovyBkfb+u6vbvENs2Xtx+IvHs3+vGvKfovUeo+M0E2KQLC3wT a+rNJSJUtigHKs9pioH7uzLNZeNZYjHQGcF2nUdtjD1jY6+CrXFw2lRoerPR9Pdej/sn ymS48f2ggvt8BBDNCc3pPjryqu51T/MA/249NAQbXcBMRKgi2Q00kaDJUfaYGr/uZkBG EMNw== X-Forwarded-Encrypted: i=1; AJvYcCUiQ1FC4sKMg9UXXa9xk2VjHvKgYfgBbQ2OE3X6dDO2U1JUKeFspUKZT4yGMsdc759m/hBcsqbQDYua/kkBlmRorxed X-Gm-Message-State: AOJu0YxxJoO1FSzT9ABJx5mkEDCGIhOaSjaKzuZpYO4ud6L5bA4MfDRO 61Gh+OePCIYynuyk5MvnwOv4bgC88J9XOHrrdfdnsUwsBx+Vc0KWfjaWYtr4 X-Google-Smtp-Source: AGHT+IHiIi/Ld+t+j1Srt89Yvy+i6bIeHEJnUVa2tcI9NGJU+ziL68RGtZUJHqHeop9sESPk4tukRQ== X-Received: by 2002:a19:5f44:0:b0:52b:c2be:8694 with SMTP id 2adb3069b0e04-52ca6e6c755mr3277428e87.39.1718444025818; Sat, 15 Jun 2024 02:33:45 -0700 (PDT) Original-Received: from smtpclient.apple (c80-217-1-132.bredband.tele2.se. [80.217.1.132]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-52ca2872578sm708006e87.130.2024.06.15.02.33.45 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sat, 15 Jun 2024 02:33:45 -0700 (PDT) In-Reply-To: <875xua93em.fsf@posteo.net> X-Mailer: Apple Mail (2.3654.120.0.1.15) Received-SPF: pass client-ip=2a00:1450:4864:20::12d; envelope-from=mattias.engdegard@gmail.com; helo=mail-lf1-x12d.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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_NONE=-0.0001, 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:320123 Archived-At: --Apple-Mail=_871FD715-246C-4910-A6CA-8C64F107956D Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 15 juni 2024 kl. 07.32 skrev Thierry Volpiatto : > My setup is not involved here, you only have to install psession.el = and > run (benchmark-run 1 (psession--dump-object-to-file-save-alist)) after > adding some variables to psession-object-to-save-alist. Some variables? Which ones, exactly? And containing what? 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, which is = nice but not quite your reported 16=C3=97 improvement. This is with = byte-compilation only, no native compilation. Run it with emacs -Q -batch -f package-initialise -l psession-bench.elc 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. --Apple-Mail=_871FD715-246C-4910-A6CA-8C64F107956D Content-Disposition: attachment; filename=psession-bench.el Content-Type: application/octet-stream; x-unix-mode=0644; name="psession-bench.el" Content-Transfer-Encoding: 7bit ;;; -*- lexical-binding: t -*- (require 'psession) (defvar my-big-list (mapcar (lambda (n) (mapcar (lambda (m) (let ((s (format "hello-%d-%d" m n))) (list m n s (intern s)))) (number-sequence 1 100))) (number-sequence 1 1000))) (push '(my-big-list . "my-big-list.el") psession-object-to-save-alist) (defun bench () (garbage-collect) (let* ((gcs0 gcs-done) (gc-elapsed0 gc-elapsed) (t0 (float-time)) (_result (psession--dump-object-to-file-save-alist)) (dt (- (float-time) t0)) (gcs (- gcs-done gcs0)) (gc-time (- gc-elapsed gc-elapsed0))) (message "%.3f s elapsed, %d GCs, %.3f s in GC, %.3f s non-GC" dt gcs gc-time (- dt gc-time)))) (bench) --Apple-Mail=_871FD715-246C-4910-A6CA-8C64F107956D Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii --Apple-Mail=_871FD715-246C-4910-A6CA-8C64F107956D--