From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id 4fAfAho+g2TNnAAASxT56A (envelope-from ) for ; Fri, 09 Jun 2023 16:58:34 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id sEl6Oxk+g2TDEAAAG6o9tA (envelope-from ) for ; Fri, 09 Jun 2023 16:58:33 +0200 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 A7CB53F5D5 for ; Fri, 9 Jun 2023 16:58:33 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q7dYb-00014l-9Y; Fri, 09 Jun 2023 10:57:41 -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 1q7dYZ-00012s-RW for emacs-orgmode@gnu.org; Fri, 09 Jun 2023 10:57:39 -0400 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q7dYX-00021E-J2 for emacs-orgmode@gnu.org; Fri, 09 Jun 2023 10:57:39 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id B5D77240028 for ; Fri, 9 Jun 2023 16:57:34 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1686322654; bh=P6cg07h8Jmx3r0yj02a4vZnb0FEiXVn4i82uvSe/l3w=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:From; b=bLlV/xe6/gXRw5YiTMtVIM/MCTaLSXb07fAe4J1g2ibNlJ3TO5IUk8pmpwEqt1ug3 xS91GOZ4LALKMYBA91/FVnwlLzFoWAwFarr4o2CD26sgLjHK1H/iV1awr7lmeTa/Xj EF9xcp0iuPt8YIBC/h5buZnJOj45DchW93vE89D9GvP92ul156YCSUEWYE0pS1rs/k dOrwH3GVryXEQh44B1S9tb5hdWezMHr6xUpKSJb9EVEH+7/udEtw2278J+EmHZe9y1 GZMUyyDQlV8uo5gIqfrgSawYJIbm/yt8ovKHLM4T7cbrOdiSB3rwMrWE+rCQe6cmEG UcH0ieHUqsOpQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Qd41p0Q2hz9rxB; Fri, 9 Jun 2023 16:57:33 +0200 (CEST) From: Ihor Radchenko To: Visuwesh Cc: emacs-orgmode@gnu.org Subject: Re: [BUG] org-fold-core--fix-folded-region slows down typing [9.6.6 (release_9.6.6 @ /home/viz/lib/ports/emacs/lisp/org/)] In-Reply-To: <875y7wbyde.fsf@gmail.com> References: <875y7wbyde.fsf@gmail.com> Date: Fri, 09 Jun 2023 15:02:16 +0000 Message-ID: <874jngvfuv.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.65; envelope-from=yantar92@posteo.net; helo=mout01.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, 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 ARC-Seal: i=1; s=key1; d=yhetil.org; t=1686322713; a=rsa-sha256; cv=none; b=mhPlXJ6QykquYQs5xN6S9wBkADnoi2Bn/au0TClaISRji3X1a+ggVW0O4U9vME3DmT92zW g9h88bfS9dVSvDX/YHsQ7tGzDnL43StO34HQLRm2X7AB8uG4e+MSWeZ4NkxM05B8K1Zlsy wfQcEcv96xAovMztJgkfpuPmxq2LNrMvZ5K89isMh+bXw6SZFXSSHD1NNLDW6nRd8u1pE1 YLbv9ZdYsnrFvXMMEAUwJnl7DHRlHsHgUkEKqg+VUQ0iioYDZoZjIplvSS7th+AnsUSjjM tOswnXJdiYXQNXchXnQUdQRP8USV8HaZs0tJ7RqqimXG11V7XmdxdkaELB+sGQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b="bLlV/xe6"; dmarc=pass (policy=none) header.from=posteo.net; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1686322713; 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=TRqhdfkSgdBgM1vrlCUXAarL8dfM/iaH7UrAn0dZyyg=; b=QFVqNXMKbfJudCRHANrDPyHDUlMa2OH+m/RGA9ldAIsh93lhArk3UqfHIOWbgnWOgDkg9Q PBtj4YERsJF1FutSowPdl6nJjlWdW5uTrwQ3JxLHH4hrJ3uKWt2fWeKAgtSPtWGWyyT3VC QHCmUMn1YCmrxJ8uWeQ/aQnOiBD3XTkfhL23kPEWmjymD/yM7qWwv4B5CSv6OLR6NiuSf3 /MrjsEptXjYvOcPERRz4mRrEI3cYqYFQ7/7Tc54Aow9q+1TsCXc8/LhlPfQ/4GEPAir7On MRRPx9pVW1G28kcJ9+Kw1BctIx/8P1nXSJmtm2U7wBNz/pWBNIzvJ9d2dFxGvA== Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b="bLlV/xe6"; dmarc=pass (policy=none) header.from=posteo.net; 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" X-Migadu-Scanner: scn0.migadu.com X-Migadu-Spam-Score: -11.78 X-Spam-Score: -11.78 X-Migadu-Queue-Id: A7CB53F5D5 X-TUID: yvl5nHOr++jQ Visuwesh writes: > In a largeish buffer, org-fold-core--fix-folded-region significantly > slows down typing to a point where I have to wait a few milliseconds to > see the characters typed. With emacs -Q, the slow down isn't as bad as > with my full configuration but it is still noticeable. Setting > `org-fold-core--ignore-modifications' to t makes the lag go away. Well. This can happen when you have a huge number of text properties in your buffer. It is caused by details of how Emacs stores and searches text properties. You can try to set `org-fold-core-style' to overlays. Or you can try to disable flyspell. Or you can try to disable org-num that adds up to text properties. Canceled. Not much can be done on Org side. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at