From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#65908: 29.1.50; Emacs 29 regresses on macOS Date: Wed, 04 Oct 2023 10:38:39 +0300 Message-ID: <83il7m6dmo.fsf@gnu.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3669"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 65908@debbugs.gnu.org, ccsmile2008@outlook.com To: Gerd =?UTF-8?Q?M=C3=B6llmann?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Oct 04 09:39:08 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1qnwTM-0000dK-0K for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 04 Oct 2023 09:39:08 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qnwT1-0001wr-5k; Wed, 04 Oct 2023 03:38:47 -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 1qnwSz-0001nQ-7V for bug-gnu-emacs@gnu.org; Wed, 04 Oct 2023 03:38:45 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qnwSy-0005EC-Vd for bug-gnu-emacs@gnu.org; Wed, 04 Oct 2023 03:38:44 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qnwTG-0007jW-Bb for bug-gnu-emacs@gnu.org; Wed, 04 Oct 2023 03:39:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 04 Oct 2023 07:39:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 65908 X-GNU-PR-Package: emacs Original-Received: via spool by 65908-submit@debbugs.gnu.org id=B65908.169640514029718 (code B ref 65908); Wed, 04 Oct 2023 07:39:02 +0000 Original-Received: (at 65908) by debbugs.gnu.org; 4 Oct 2023 07:39:00 +0000 Original-Received: from localhost ([127.0.0.1]:41417 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qnwTD-0007jF-Ln for submit@debbugs.gnu.org; Wed, 04 Oct 2023 03:39:00 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41240) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qnwTC-0007j2-4l for 65908@debbugs.gnu.org; Wed, 04 Oct 2023 03:38:58 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qnwSo-000571-TJ; Wed, 04 Oct 2023 03:38:34 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=sQ/9fvqeskvOX/yY0lLNb+GahV6SUTbKB3zArTz5cqE=; b=c0LCkvj/tct0l4hnhNal GiP57kXAzhBT5mmQq8Lwi0aDMxNC8gkGtDVuy0f9FzUpCX/Ml8oKgItN6C2DXhPkVzeMnxIJqIthF V+1VDcnd0wCprEF6Vufbfyn7Foapy6P0EYtf+z/wpiO5PrdY2ATWAfi2fP5zZL6ea3MxVIBJqGlwV VC0HCKBy40B9ORGMWgFyfcSiO03uvu4LTLyLDv/UMxOCee5P1so4zh1YJFAJki892ZdyeohDpHUkc Zi7vEHELVYwkzw4ARYFkmgmlPE6PZJHGbtqY+NWH3Kh50u0rdSoTfBI0EFR09vG2wZb/AksE0neh3 fBEYVxm6XmwyLg==; In-Reply-To: (message from Gerd =?UTF-8?Q?M=C3=B6llmann?= on Wed, 04 Oct 2023 07:44:33 +0200) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:271771 Archived-At: > Cc: 65908@debbugs.gnu.org > From: Gerd Möllmann > Date: Wed, 04 Oct 2023 07:44:33 +0200 > > Zhang Haijun writes: > > > 1 emacs -Q > > 2 paste the following code to scratch buffer and execute it for saveral times > > > > (benchmark-progn > > (setq enable-dir-local-variables nil > >             enable-local-variables nil) > > > > (let* ((test-dir "~/source/emacs-git/lisp") > >              (file-list (directory-files test-dir t > >                                                        "\\`[fsw].*[.]el\\'" t)) > >              (start-tm (current-time)) > >              end-tm buf buf-list) > > > >       (dolist (test-file file-list) > >        (setq buf (find-file-noselect test-file)) > >        (with-current-buffer buf > >             (goto-char (point-min)) > >             (while (not (eobp)) > >              (end-of-defun))) > >        (setq buf-list (cons buf buf-list))) > > > >       (setq end-tm (current-time)) > > > >       (dolist (buf buf-list) > >        (kill-buffer buf)) > > > >       (let ((delta (time-subtract end-tm start-tm))) > >        (message "--- files: %d, delta: %s" > >                    (length file-list) (float-time delta))))) > > (Your mailer does strange things with whitespace...) > > > Time used in Emacs 29 is 1.6x than in Emacs 27. They are all built with "-O2". > > I also tested on Linux. There is no such big regress. > > Thanks for the report. > > I can reproduce this on macOS 14.0 (OCLP). > > emacs-28, HEAD: > "--- files: 61, delta: 3.086468" > "--- files: 61, delta: 3.106478" > "--- files: 61, delta: 3.325344" > > emacs-29, HEAD: > "--- files: 61, delta: 5.052421" > "--- files: 61, delta: 5.068663" > "--- files: 61, delta: 5.110502" > > FWIW, master > "--- files: 61, delta: 5.124109" > "--- files: 61, delta: 5.101217" > "--- files: 61, delta: 5.13068" A completely expanded Lisp profile, after loading the Lisp files involved in this as *.el, would be appreciated.