From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Yuchen Pei Newsgroups: gmane.emacs.devel Subject: =?US-ASCII?Q?Re=3A_29=2E0=2E91_756244c696_Saving_large_org_file?= =?US-ASCII?Q?_can_be_slow_with_time-stamp_before-save-hook?= Date: Sun, 04 Jun 2023 16:45:34 +1000 Message-ID: References: <87ilc4ok4d.fsf@ypei.org> <87pm6blp8u.fsf@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22289"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: K-9 Mail for Android Cc: emacs-devel@gnu.org To: Ihor Radchenko Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Jun 04 08:46:51 2023 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 1q5hVp-0005Yv-Lb for ged-emacs-devel@m.gmane-mx.org; Sun, 04 Jun 2023 08:46:51 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q5hV7-0000kd-QB; Sun, 04 Jun 2023 02:46:05 -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 1q5hUy-0000jz-AK for emacs-devel@gnu.org; Sun, 04 Jun 2023 02:46:00 -0400 Original-Received: from wout1-smtp.messagingengine.com ([64.147.123.24]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q5hUu-0005Rf-CR for emacs-devel@gnu.org; Sun, 04 Jun 2023 02:45:54 -0400 Original-Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.west.internal (Postfix) with ESMTP id 1AB9F32004E7; Sun, 4 Jun 2023 02:45:50 -0400 (EDT) Original-Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Sun, 04 Jun 2023 02:45:50 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ypei.org; h=cc :cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to; s=fm2; t= 1685861149; x=1685947549; bh=2Fqp1rrN5GoAFTklwq5BAuk/kmZhT6TtRVf JqvixAU4=; b=XERYofS9f/oRvwnYRxIkfJmlEKw1BtuskRpDChrLmD32v9SxgWX n9kS0NaSuaXJWhSW1+1+rC9u395Ms+XFiXXggThOiabzlm+ftL/Cn3WAXvGyxSgT kFZ/kOj/tqJDtv9RzcEMknaKKJ7WmOeZq4pVu6pyAIcpCzX5mHs3QoHk1RL7gNxP FxZ9CJxiCy2qKAaFm4DrgB1TKy58rnf149edCOaMkuac//dk/mxhFFUquqjDBZpa UwwUSaq+GDO+0p5glUdyNJn+AJlMirPn2wta08sD3JqNQSZ0uw7rmQISUKUvW6xB gDqrcVl00RsJ/nS+Bi7XJkliN2cmj+ghWwA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references: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= 1685861149; x=1685947549; bh=2Fqp1rrN5GoAFTklwq5BAuk/kmZhT6TtRVf JqvixAU4=; b=eF2zglNcb9Y9FntliI2uazx0nVIs/UFZoRIXOTZZ5/wmYemGxkO tHCvMihPtVEDdDHcFJ/CGakPMFDgfETmRv/5YJpKLK2z9JBeZcv0KBy033uSkKZu hyekxJB5INV0/3mMx+TOqwMNlTuoKCmsiQ67vZkmSWbCYFlSw22ncm4vw4QmPgQ2 GRK7cDKsYtlgw1D/J9prM0J+tSX7wjsGPPQ1iyERRVH3bRS7HBULDhFAHUCKQ7Mf 1ESa0mqaaUjvPMMhmdM1ipibOf4VfcBLyw0ynjMdNaXEnaLyoliLMAZnMNOiLVvQ ROwm6RVR6lREd57h+8YdHkPKsgkE/Oi6DVA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrfeeliedguddugecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhepfffhvfevufgfjghfkfggtgfgse htqhhmtddtreejnecuhfhrohhmpegjuhgthhgvnhcurfgvihcuoehiugeshihpvghirdho rhhgqeenucggtffrrghtthgvrhhnpedtkeetudejgefgudfgvefhhfejgeetfeekhfefud ffjedvheehteevveejueegvdenucffohhmrghinhepghhnuhdrohhrghenucevlhhushht vghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehiugeshihpvghirdhorh hg X-ME-Proxy: Feedback-ID: i51b146f9:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 4 Jun 2023 02:45:46 -0400 (EDT) In-Reply-To: <87pm6blp8u.fsf@localhost> Received-SPF: pass client-ip=64.147.123.24; envelope-from=id@ypei.org; helo=wout1-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, 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-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:306601 Archived-At: On 4 June 2023 16:23:45 GMT+10:00, Ihor Radchenko = wrote: >Yuchen Pei writes: > >> emacs-29 756244c69638bc3562d8cd2c1aa126216e99fb29 build=2E >> >> Not sure how to reprod with something from scratch=2E But here are the >> steps to reprod with a large "organic" org file with emacs -Q >> >> - (add-hook 'before-save-hook 'time-stamp) >> - Open a very large org file with a "Time-stamp:" at the beginning of t= he >> file >> - (setq org-refile-use-cache t) >> - (setq org-refile-use-outline-path t) >> - (setq org-refile-targets '((org-agenda-files :maxlevel =2E 5))) >> - (setq org-goto-interface 'outline-path-completion) >> - M-x org-goto, which triggers `org-refile-get-targets`, wait for it to >> finish > >Potentially a duplicate of https://debbugs=2Egnu=2Eorg/cgi/bugreport=2Ecg= i?bug=3D58558 >`org-refile-get-targets' creates a bunch of markers in buffer and in the >discussion of bug#58558 we have found that >`parse-sexp-lookup-properties' set to non-nil dramatically slows down >searching in buffer, with slowdown scaling with the number of markers=2E >There is also a fix=2E > >Yuchen, may you try to set `parse-sexp-lookup-properties' locally to nil >in your large Org buffer? If it helps, that's it=2E > Thanks=2E Tried that, and it did not fix the issue=2E