From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id gBt+J+1e9WXyWgEAqHPOHw:P1 (envelope-from ) for ; Sat, 16 Mar 2024 09:57:17 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id gBt+J+1e9WXyWgEAqHPOHw (envelope-from ) for ; Sat, 16 Mar 2024 09:57:17 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=E6FopM3k; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=posteo.net ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1710579437; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=vOzKTRmUnTTwjy+Lr/RlEV5aYVqPxTc4pvP3eJ9Q8tE=; b=XYVPwNFH9CRo7pDNQYG9bk73ukaAmK9hocmP5kMLyDPUyfPQw0fMPFZC+E0i3GS4Wf2qIA NfM4h9T0q6hTzcsJjmZyU74DqMkX9kaA0lpJQ92WgtsxkWqLcOOp/Bz3+YiZxfLlWZNap7 +F5ferH24cYeoN90uJ1niTBfGLdhrzplLgxEIqQ220Of/ZL2fLUHfuOUZaLY1SQ2f0TMTQ WITKSX1ClwZ05sfGcw9/w4stlbtYsf3cfTKVpWZbOcNWFy5ZjVcdnWdiIhpAdoimWgjSc2 fSgDjOYOEWKyV78JTt3uqBQjWtL1jCx6w2aR6iFGdLiwyWFosheFaCEZaZQLEw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=E6FopM3k; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=posteo.net ARC-Seal: i=1; s=key1; d=yhetil.org; t=1710579437; a=rsa-sha256; cv=none; b=KjP4QE5BES1d2zN2Ra4hb2QFVQzYuScbC/gBIraoSeSRnzAfQiTKuDnottuROPB+MrrHEg VBGj5lUEXV0IMb9SLOf+LFitnOKesxVAY6AZMTq0cFh1VUMYdU9q/6wEPiWpRXWnhKfRvQ Ee7fGcJcJ4DHLdobyqyjoQt/mgSL7zm6t6mbWMA784V7TCA2faFgXUzEDtQKMGaQsgbDGG WXSiameRxMT6XSWwsNJ1Jn4nTjWHPBQTIrY25o3E8gW33XpUIvYmw0TK3teH1KIHXawKAF jG0zgnC0zJHMzz4VVxPeuSYGl1kUBExcEisTElz8uOzU8pQJWAog1Fmqq5xi2g== Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 545F8352F0 for ; Sat, 16 Mar 2024 09:57:17 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rlPq4-0000vm-Og; Sat, 16 Mar 2024 04:56:24 -0400 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 1rlPpy-0000tQ-J0 for emacs-orgmode@gnu.org; Sat, 16 Mar 2024 04:56:21 -0400 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rlPpw-0003El-6f for emacs-orgmode@gnu.org; Sat, 16 Mar 2024 04:56:18 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id E41AA240103 for ; Sat, 16 Mar 2024 09:56:13 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1710579373; bh=QnbMgL11/I01/wcFIbrNp3J+K+ffIIC7mtxcVCkj2Po=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=E6FopM3kwMYn5sGXNKgi179cO/XLqAWsuTRJRTY4AXB9T3P7d6Zl04Gi7vBPZsv21 JncN/h8j2La36kgm1bcRXBrJiBAs5N73D8Ra6BP27Q6XYYJAAEeESTR/LX+XsoWudw vwEQTk3ZmxzFkOxntob1DLs2TealJEABBP+lLeV3TWiFq3lz4anqgPHQSXkxjTtg4Q ObVsTfmHIRnUafwHs4kyhQ+OSlmqP7PVTZqo8YTjbUibuc/lwkm9CU5pLY43FWdMQF +GveRTk+cronrYYoPZK62XoITSszd7NBqDpAuvb67N1yPlQhRo4qr7bndN0MtDH4ig YPzzXprrdyWcQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4TxZj84mlMz9rxD; Sat, 16 Mar 2024 09:56:12 +0100 (CET) From: Ihor Radchenko To: Bruno Cardoso Cc: William Denton , Emacs Org mode mailing list Subject: Re: Things got very slow: profiler output In-Reply-To: <87sf0r4c7m.fsf@gmail.com> References: <65e04d75.5d0a0220.767a3.41e0@mx.google.com> <8734svei2j.fsf@localhost> <87wmq5btzn.fsf@gmail.com> <87wmq4h5j6.fsf@localhost> <875xxo5miu.fsf@gmail.com> <87a5mzind4.fsf@localhost> <87v85n4fqh.fsf@gmail.com> <87edcbza5f.fsf@localhost> <87sf0r4c7m.fsf@gmail.com> Date: Sat, 16 Mar 2024 08:56:09 +0000 Message-ID: <87edcawo5y.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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_MED=-2.3, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, 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-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: -6.81 X-Spam-Score: -6.81 X-Migadu-Queue-Id: 545F8352F0 X-TUID: 28saDNu5vk6/ Bruno Cardoso writes: > My call count is in fact higher: > > org-fold-core--property-symbol-get-create 196278 3.2828460320 1.672...e-05 Makes sense. What if you try the following version of `org-activate-folds'? (defun org-activate-folds (limit) "Arrange trailing newlines after folds to inherit face before the fold." (let ((next-unfolded-newline (search-forward "\n" limit 'move))) (while (and next-unfolded-newline (org-fold-folded-p) (not (eobp))) (goto-char (org-fold-core-next-visibility-change nil limit 'only-folds)) (setq next-unfolded-newline (search-forward "\n" limit 'move))) (when next-unfolded-newline (org-with-wide-buffer (when (and (> (match-beginning 0) (point-min)) (org-fold-folded-p (1- (match-beginning 0))) (not (org-fold-folded-p (1- (match-beginning 0)) 'org-link))) (put-text-property (match-beginning 0) (match-end 0) 'face (get-text-property (org-fold-previous-visibility-change (1- (match-beginning 0))) 'face))) t)))) -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at