From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.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 sDQWLXFMg2TAZgAASxT56A (envelope-from ) for ; Fri, 09 Jun 2023 17:59:45 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id sAodLXFMg2QnCAAA9RJhRA (envelope-from ) for ; Fri, 09 Jun 2023 17:59:45 +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 584AF99E7 for ; Fri, 9 Jun 2023 17:59:45 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q7eVa-0003wn-1b; Fri, 09 Jun 2023 11:58:38 -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 1q7eVX-0003wI-W3 for emacs-orgmode@gnu.org; Fri, 09 Jun 2023 11:58:36 -0400 Received: from mail-pg1-x543.google.com ([2607:f8b0:4864:20::543]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1q7eVW-0005j3-ES for emacs-orgmode@gnu.org; Fri, 09 Jun 2023 11:58:35 -0400 Received: by mail-pg1-x543.google.com with SMTP id 41be03b00d2f7-543d90cc675so704963a12.3 for ; Fri, 09 Jun 2023 08:58:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1686326313; x=1688918313; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=vT4xMbcN/ZDRhS1taKJy7AliLgUYaVhmPzSWASY4S3Y=; b=SU+zoU2f/Q4xWJdj5bTnePELr6fyRDFOm62L27XulGE4yrUiIzLEL+5v+bzwU+3ALJ Hrny83Wok8EiFvoQTTWC8dUW07POVYjUj+QCl3IhoMADGst5iyWgIUxC5zz83//8Q2ZZ nbnRZO2V3llgMXHkqu9PivSUw3XKG99bJCgMf2XQm6Wk7PaEsoqcKsJmPs9B/xIX+bgE CpdgaLMUHHrP/ZkgppyvAdlTHifq8VoBAjWcPpOWSOhJ4k4OKgm5zEVZf/I12Lz4U41S eraRqLpnKw4n6TDA+HD/zsblWtot+SHJNt2zXJbi4Id+qPjdG1DSZ39wjjRm08fyOmiK fTwQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686326313; x=1688918313; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=vT4xMbcN/ZDRhS1taKJy7AliLgUYaVhmPzSWASY4S3Y=; b=UGkrzYrkctZ7cKlST6bi+g8tSC88wjrZ8YStkrDKbUYYmbv+3jASk/Ig7nKzzFsRVK Un8jtcsHMalvgfUHSvVz9AjOvX65u0Z+35AwCJ4h5+cYMgG8bVV8x/ERx9CWkgWpiRmy YdHQknfQzMQp8izCFdiUu9zUNEzvPkbO6Mw1ZtgJ1GD/jOmmxlNBdsc5ZYu/HEJAs4n6 KvlDYQAYtiZprX0kBuqMCfeXi4OWywz3JrEvNCcvScigr9R0IzKZiu1VsbrcRXZBjp8e gRzu1O6qrUvolfBp105WiDtOChEQ9ZKPMVhzzkcc1qsl70ki6kkrDHjEqiw+50qLySiJ zJtA== X-Gm-Message-State: AC+VfDxBglY4xCY7ZubYh2wMv8Y4mF+l8DGx5s83+vndD3bkgT+L+Pbl ljFXbTsoSFz8OpkykJ30krIdCgwXbNCuDA== X-Google-Smtp-Source: ACHHUZ496/EFQk5IBz9fdcYi2j6c0wWz+GFslCgTR3c40j2HTuvBxSlpLCbbllnjosdOdAukQdUXew== X-Received: by 2002:a17:90a:307:b0:25b:a165:78d with SMTP id 7-20020a17090a030700b0025ba165078dmr739303pje.45.1686326312934; Fri, 09 Jun 2023 08:58:32 -0700 (PDT) Received: from localhost ([49.205.80.56]) by smtp.gmail.com with ESMTPSA id 8-20020a17090a198800b0025643e5da99sm5193113pji.37.2023.06.09.08.58.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Jun 2023 08:58:32 -0700 (PDT) From: Visuwesh To: Ihor Radchenko 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: <874jngvfuv.fsf@localhost> (Ihor Radchenko's message of "Fri, 09 Jun 2023 15:02:16 +0000") References: <875y7wbyde.fsf@gmail.com> <874jngvfuv.fsf@localhost> Date: Fri, 09 Jun 2023 21:28:30 +0530 Message-ID: <87y1ksaaqh.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2607:f8b0:4864:20::543; envelope-from=visuweshm@gmail.com; helo=mail-pg1-x543.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1686326385; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=vT4xMbcN/ZDRhS1taKJy7AliLgUYaVhmPzSWASY4S3Y=; b=ttPBGN+nNOmtjeTiSFAsSyeU/qmKxprUgOulyA9W5Np7hLCvu89aoxSmqhuMO6GjRafXjV boR1crFKQ73yvNTC8WcSbK2bco++9tzvkZPU6hIVjqltVMbg9VpwOO+ejss8Jso4nseegM xWmaIhvJeiMoUlUikyLOkdxECUb0xhc0tgI50Hz64nUZDob+rvmErz42h+fgfjCZlRGGeA NTdAamWhCzBQihEU8DkFRN28jImSdpbV7Y6+S3/QPOYRaYnjplcGH/xFFwrT4DXbEdk7wQ 4IuRZtul3RDjElJYmFY8f3msu6RBFMSdMf7HsHxF3fdbb7e0xphUquzj6ESfSg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=SU+zoU2f; dmarc=pass (policy=none) header.from=gmail.com; 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-Seal: i=1; s=key1; d=yhetil.org; t=1686326385; a=rsa-sha256; cv=none; b=fOYUZAOcocX+izZgDmeFqfxGT1pOv79u2vxRdCJquBsMgT9C4NSBp4Nux6eSM8J0TgWK6u INVWkMbnV2aHQi74EEjyLeBDrvBQ2ygJ9lMdfIDT9qnfyW0lyis6PMdZNZWQmt4QGgZVgO IW9fbzFIcxD+whZdJyphb/3AFg76YHqizojyI1RthnqZtYhABk30IpVET3//N5RPVZ4875 lXlxEDL52Gt1j66l+QqDFbIqVeEupea3lTP43Ldymc/bobV+6whN3wJSLoG3ymYU/BkNLe 3QF/SF/l08W2eOn7/9J4+wA7Y2Xp7P/9I5vCYcPZIB14bcJfmZf1hbRxEK6ukw== X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: -6.36 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=SU+zoU2f; dmarc=pass (policy=none) header.from=gmail.com; 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-Queue-Id: 584AF99E7 X-Spam-Score: -6.36 X-TUID: BpmolnQsQoXC [=E0=AE=B5=E0=AF=86=E0=AE=B3=E0=AF=8D=E0=AE=B3=E0=AE=BF =E0=AE=9C=E0=AF=82= =E0=AE=A9=E0=AF=8D 09, 2023] Ihor Radchenko wrote: > 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. What kind of disasters will I invite if I permanently set `org-fold-core--ignore-modifications' to t? > Canceled. > Not much can be done on Org side.