X-Loop: help-debbugs@HIDDEN Subject: bug#67330: 29.1.90.1; time-stamp slowdown in large org file after org-refile-get-targets, caused by e7b5912b23 (Improvements to long lines handling) Resent-From: Yuchen Pei <id@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Tue, 21 Nov 2023 14:17:05 +0000 Resent-Message-ID: <handler.67330.B.17005762143643 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: report 67330 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 67330 <at> debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs <bug-gnu-emacs@HIDDEN> Received: via spool by submit <at> debbugs.gnu.org id=B.17005762143643 (code B ref -1); Tue, 21 Nov 2023 14:17:05 +0000 Received: (at submit) by debbugs.gnu.org; 21 Nov 2023 14:16:54 +0000 Received: from localhost ([127.0.0.1]:55547 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1r5RYb-0000wc-Ij for submit <at> debbugs.gnu.org; Tue, 21 Nov 2023 09:16:53 -0500 Received: from lists.gnu.org ([2001:470:142::17]:56262) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <id@HIDDEN>) id 1r5Pvq-0003o3-HV for submit <at> debbugs.gnu.org; Tue, 21 Nov 2023 07:32:47 -0500 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@HIDDEN>) id 1r5Pvd-00016v-Va for bug-gnu-emacs@HIDDEN; Tue, 21 Nov 2023 07:32:34 -0500 Received: from wout4-smtp.messagingengine.com ([64.147.123.20]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <id@HIDDEN>) id 1r5Pvb-0006Qg-Ol for bug-gnu-emacs@HIDDEN; Tue, 21 Nov 2023 07:32:33 -0500 Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailout.west.internal (Postfix) with ESMTP id 6AC703200F31 for <bug-gnu-emacs@HIDDEN>; Tue, 21 Nov 2023 07:32:29 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Tue, 21 Nov 2023 07:32:29 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ypei.org; h=cc :content-type:content-type:date:date:from:from:in-reply-to :message-id:mime-version:reply-to:sender:subject:subject:to:to; s=fm2; t=1700569948; x=1700656348; bh=Z4E7OCnRdNosj+esQIuSqyrY9 irK3Y5alw8f8QTOFHQ=; b=fx0WBCZ5Cbh4mwC0XTWXVt76bR/CclXNFPrvNZwqg 4Y23RrXFoVwVIGl631/LJ/0DU0kVviOHDdgtjEB/L7TUTStDvYLXfJzHUZop7dQr a871/71sh+VGTTdkNKEoraaJFp97IIwEdoCiRRZy/rbNCCqD5DwsL/Xy16GZ86ta K//Eg50d4gWtQKSS2OU91glJYaTpSdVh+dzKAXZfMaITgz6fw7Sly6Pv5/pnAuvk WsWPgOnWXeDI9orFDVTOnq4cMLeANYEhMiRZeXH13N7LniB78kBCse8Xbkrf0zNc KEJqUKmT+2DSwwY+YdUXZqrmQJSoobhzvhEl2L5UEgteA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:message-id :mime-version:reply-to:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t= 1700569948; x=1700656348; bh=Z4E7OCnRdNosj+esQIuSqyrY9irK3Y5alw8 f8QTOFHQ=; b=wPH5BAyqsk51y8Ngp/FfL4TvcHznjc3RMqgo+hNRJl5A3yBnZ/e ycI6tvyjoLaAW5j8rzQzMCXI4ieWqjhkYrUSGUkBSEC2ornNnl3QeYBfb/s/zA8n luOnVDGKOvc9mqpBgIqjOFpBVT9KZ41e6UCut3GO4Eq9EkfjNSTAYYreT3/S2Tpq 6PcFwkfSa/LX2yL61XJ1VBx9xIp00M4MOJyXH2SM/ulTxHOB6ElsQrdq/8kD0a8E Y7METr9cq5Or31SiTdAWJx6GUISpGH4yIa7uM9O2VB8Y1ME7TSyFUc7vVSewrLz7 d8LSNqXEnDsuCYo9DGH9AlUi7a3vpE+EUPA== X-ME-Sender: <xms:XKNcZequg0adM9lwj3LBITr-ijnCDOyLk5oERfcjsgtb866Q8SumoA> <xme:XKNcZcrR5chxurOFiLKuZWCwqk6Ys1TceP9TDw8E4p4jdDheVXWvhPg1buyb1EpdO y8g2vUMYFkSsl64cw> X-ME-Received: <xmr:XKNcZTMn7o0YYHVCnfm8scBYqujRlKG__jz_o-XLS0qrUykYzTRT5Rsz> X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrudegledgfeehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvffufffkfgggtgesthdtredttd ertdenucfhrhhomhepjghutghhvghnucfrvghiuceoihguseihphgvihdrohhrgheqnecu ggftrfgrthhtvghrnhepfeekgedutdfgveefleefudetuddvhfdvfeevtdelvddvvdevke fhtdeftdevuedunecuffhomhgrihhnpehgnhhurdhorhhgpdihphgvihdrohhrghenucev lhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehiugeshihpvg hirdhorhhg X-ME-Proxy: <xmx:XKNcZd7uhQfMR0b3tg2kv5XpHjV8DQdcerrbHEvvhSFOfRjMkEhEOg> <xmx:XKNcZd7sjX2i1OfXgq8Md6qtuQe5GCZKr65Du6bW8IzQQHHDgE9Eqg> <xmx:XKNcZdjqy1lG9MiA_YHsztyLRGqN5GRTZNZO9f-MA-oaxcPD8UsrJw> <xmx:XKNcZeWz4trPtaP1YgqWiE2bbD0QEvjQ_sNOwrIZTpEDtwtt9-eZjw> Feedback-ID: i51b146f9:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA for <bug-gnu-emacs@HIDDEN>; Tue, 21 Nov 2023 07:32:27 -0500 (EST) From: Yuchen Pei <id@HIDDEN> Date: Tue, 21 Nov 2023 23:32:23 +1100 Message-ID: <87cyw39tig.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=64.147.123.20; envelope-from=id@HIDDEN; helo=wout4-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_LOW=-0.7, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 0.6 (/) X-Mailman-Approved-At: Tue, 21 Nov 2023 09:16:42 -0500 X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -0.4 (/) Previously reported in emacs-devel at https://lists.gnu.org/archive/html/emacs-devel/2023-06/msg00113.html Emacs built with ./configure --with-native-compilation --with-imagemagick --with-json Possibly related to bug#57207 Set up: foo.org is a 12MB file, longest line 4753, about 21000 headlines. It contains the timestamp thingie "Time-stamp: <....>" as one of the first few lines that already has a timestamp from before. Say the following file is called bar.el #+begin_src emacs-lisp (add-hook 'before-save-hook 'time-stamp) (require 'org-refile) (setq org-refile-use-cache t) (setq org-refile-use-outline-path t) (setq org-refile-targets '((nil :maxlevel . 5))) (setq org-goto-interface 'outline-path-completion) (setq large-file-warning-threshold 15000000) (find-file "foo.org") (org-refile-get-targets) #+end_src To reproduce, do ./src/emacs -Q -l bar.el foo.org followed by eval (time-stamp) It will take 10+ seconds to complete, and 10+ seconds if I undo afterwards. Like bug#57207, (setq long-line-threshold nil) is a workaround, and (time-stamp) completes instantly. I could not measure the precise time or have the whole process run in batch mode because: 1. It does not affect batch mode, presumably because of the change has to do with x display 2. (time-stamp) has funny pseudo-asynchronous behaviour: if I do (progn (time-stamp) (message "Done.")) the message evals immediately, long before time-stamp "completes" and unhangs emacs. BTW what is the commit that fixed bug#57207? I searched for commits in master and emacs-29 with message containing 57207 but could not find any. Best, Yuchen -- Dr Yuchen Pei | https://ypei.org | Timezone: UTC+11 PGP Key: 47F9 D050 1E11 8879 9040 4941 2126 7E93 EF86 DFD0 https://ypei.org/assets/ypei-pubkey.txt
Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) Content-Type: text/plain; charset=utf-8 X-Loop: help-debbugs@HIDDEN From: help-debbugs@HIDDEN (GNU bug Tracking System) To: Yuchen Pei <id@HIDDEN> Subject: bug#67330: Acknowledgement (29.1.90.1; time-stamp slowdown in large org file after org-refile-get-targets, caused by e7b5912b23 (Improvements to long lines handling)) Message-ID: <handler.67330.B.17005762143643.ack <at> debbugs.gnu.org> References: <87cyw39tig.fsf@HIDDEN> X-Gnu-PR-Message: ack 67330 X-Gnu-PR-Package: emacs Reply-To: 67330 <at> debbugs.gnu.org Date: Tue, 21 Nov 2023 14:17:05 +0000 Thank you for filing a new bug report with debbugs.gnu.org. This is an automatically generated reply to let you know your message has been received. Your message is being forwarded to the package maintainers and other interested parties for their attention; they will reply in due course. Your message has been sent to the package maintainer(s): bug-gnu-emacs@HIDDEN If you wish to submit further information on this problem, please send it to 67330 <at> debbugs.gnu.org. Please do not send mail to help-debbugs@HIDDEN unless you wish to report a problem with the Bug-tracking system. --=20 67330: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D67330 GNU Bug Tracking System Contact help-debbugs@HIDDEN with problems
X-Loop: help-debbugs@HIDDEN Subject: bug#67330: 29.1.90.1; time-stamp slowdown in large org file after org-refile-get-targets, caused by e7b5912b23 (Improvements to long lines handling) Resent-From: Eli Zaretskii <eliz@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Tue, 21 Nov 2023 14:35:02 +0000 Resent-Message-ID: <handler.67330.B67330.17005772485346 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 67330 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Yuchen Pei <id@HIDDEN> Cc: 67330 <at> debbugs.gnu.org Received: via spool by 67330-submit <at> debbugs.gnu.org id=B67330.17005772485346 (code B ref 67330); Tue, 21 Nov 2023 14:35:02 +0000 Received: (at 67330) by debbugs.gnu.org; 21 Nov 2023 14:34:08 +0000 Received: from localhost ([127.0.0.1]:55590 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1r5RpH-0001O9-Pj for submit <at> debbugs.gnu.org; Tue, 21 Nov 2023 09:34:08 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:37790) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1r5RpF-0001Nl-KH; Tue, 21 Nov 2023 09:34:06 -0500 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 <eliz@HIDDEN>) id 1r5Rp6-0006AU-00; Tue, 21 Nov 2023 09:33:57 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=/saRbcO/3wqQC2PmEOlBHVsGM/6dguxs0zYLEEe6EAM=; b=WuA/8PK1TmtX uxY3npsoPYlppEDCLX7lGeazhIZeB36BVKslrxxOrOGDTzV/54PqAq12h9979vPgVi6Gmb07kFRRu 6VwCmWhWZUvoPkC5r+nynjM/mk037QPvhFlMuvgrjFaxLUkqRlXNAJNzipEjnOgLgghhVVBeAnM9T d8q+YuzXk3Gp54hDrgElu2Iib086nJDFueE9VqYza/4eXA3n0DX/OpNHCNAS/Qmj2oftH2279qYX5 nHnYOPTput7NyDVc04EWs4UD4ZmLg7ZPXdY5QQq2U/U88AVt6arhGhqnle6N2fch7bI/sDEO12ioN jWFxJXbpNZuArvDs2i56Vw==; Date: Tue, 21 Nov 2023 16:33:21 +0200 Message-Id: <83v89vgor2.fsf@HIDDEN> From: Eli Zaretskii <eliz@HIDDEN> In-Reply-To: <87cyw39tig.fsf@HIDDEN> (message from Yuchen Pei on Tue, 21 Nov 2023 23:32:23 +1100) References: <87cyw39tig.fsf@HIDDEN> X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) merge 67330 67327 67326 thanks > From: Yuchen Pei <id@HIDDEN> > Date: Tue, 21 Nov 2023 23:32:23 +1100 > > Previously reported in emacs-devel at > https://lists.gnu.org/archive/html/emacs-devel/2023-06/msg00113.html > > Emacs built with > > ./configure --with-native-compilation --with-imagemagick --with-json > > Possibly related to bug#57207 You have just reported 3 exact duplicates of the same bug...
Received: (at control) by debbugs.gnu.org; 21 Nov 2023 14:34:08 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Tue Nov 21 09:34:08 2023 Received: from localhost ([127.0.0.1]:55592 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1r5RpI-0001OB-1Z for submit <at> debbugs.gnu.org; Tue, 21 Nov 2023 09:34:08 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:37790) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1r5RpF-0001Nl-KH; Tue, 21 Nov 2023 09:34:06 -0500 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 <eliz@HIDDEN>) id 1r5Rp6-0006AU-00; Tue, 21 Nov 2023 09:33:57 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=/saRbcO/3wqQC2PmEOlBHVsGM/6dguxs0zYLEEe6EAM=; b=WuA/8PK1TmtX uxY3npsoPYlppEDCLX7lGeazhIZeB36BVKslrxxOrOGDTzV/54PqAq12h9979vPgVi6Gmb07kFRRu 6VwCmWhWZUvoPkC5r+nynjM/mk037QPvhFlMuvgrjFaxLUkqRlXNAJNzipEjnOgLgghhVVBeAnM9T d8q+YuzXk3Gp54hDrgElu2Iib086nJDFueE9VqYza/4eXA3n0DX/OpNHCNAS/Qmj2oftH2279qYX5 nHnYOPTput7NyDVc04EWs4UD4ZmLg7ZPXdY5QQq2U/U88AVt6arhGhqnle6N2fch7bI/sDEO12ioN jWFxJXbpNZuArvDs2i56Vw==; Date: Tue, 21 Nov 2023 16:33:21 +0200 Message-Id: <83v89vgor2.fsf@HIDDEN> From: Eli Zaretskii <eliz@HIDDEN> To: Yuchen Pei <id@HIDDEN> In-Reply-To: <87cyw39tig.fsf@HIDDEN> (message from Yuchen Pei on Tue, 21 Nov 2023 23:32:23 +1100) Subject: Re: bug#67330: 29.1.90.1; time-stamp slowdown in large org file after org-refile-get-targets, caused by e7b5912b23 (Improvements to long lines handling) References: <87cyw39tig.fsf@HIDDEN> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control Cc: 67330 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) merge 67330 67327 67326 thanks > From: Yuchen Pei <id@HIDDEN> > Date: Tue, 21 Nov 2023 23:32:23 +1100 > > Previously reported in emacs-devel at > https://lists.gnu.org/archive/html/emacs-devel/2023-06/msg00113.html > > Emacs built with > > ./configure --with-native-compilation --with-imagemagick --with-json > > Possibly related to bug#57207 You have just reported 3 exact duplicates of the same bug...
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.