From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 2B/9D5lelGN6OwAAbAwnHQ (envelope-from ) for ; Sat, 10 Dec 2022 11:25:29 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id kIoCEJlelGM9gQAAauVa8A (envelope-from ) for ; Sat, 10 Dec 2022 11:25:29 +0100 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 F31E410529 for ; Sat, 10 Dec 2022 11:25:28 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p3x2T-0000A6-FY; Sat, 10 Dec 2022 05:25:01 -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 1p3x2Q-00008x-VF for emacs-orgmode@gnu.org; Sat, 10 Dec 2022 05:24:59 -0500 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 1p3x2O-00089e-QM for emacs-orgmode@gnu.org; Sat, 10 Dec 2022 05:24:58 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id C1365240029 for ; Sat, 10 Dec 2022 11:24:54 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1670667894; bh=H2HYdXc2lBpfi+/nXky6aPPKWmnJqWegRY7VEZg+ew8=; h=From:To:Cc:Subject:Date:From; b=R2Q5/csRbzZkBfMTV9EIo4jOsO88gN9/UZZ5HcjJfwx17UHhla7zS2NsbOFTm1h0Q CYS+hlnt2wGEqZlz1rStFm94DjLE6vImj/7lnWEPc3osCGNmRScarCSgvDJEEt1F8N dgFdxaenMAYYTd2FhVqNSOqeFDGJhfKmdyuM2X5ajxLBUTD7Ym2aBE+hbUKxkIh2HS whdRK0OMV7M5ChDSY1dbK2O8dHCDv+bpTbMoxR3AtZmUepq21SfGhNaa9xNxNgzD+Z 0q1j6Mc5Z4lEWUws3dB9DJ5cdlrS56hfPlaOX99Ky/46sRcIdyMyuwDhGx6yU/Ye4o 7uuoIc3y06FJA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4NTkXk0nBrz6tnm; Sat, 10 Dec 2022 11:24:54 +0100 (CET) From: Ihor Radchenko To: arozbiz@gmail.com Cc: emacs-orgmode@gnu.org Subject: Re: Flyspell causes severe slowdown when manipulating footnotes In-Reply-To: References: <87y1rjjqk0.fsf@localhost> Date: Sat, 10 Dec 2022 10:24:53 +0000 Message-ID: <87k02zr1xm.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: -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_NONE=0.001, SPF_PASS=-0.001 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-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1670667929; 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=zBrtv2901hOKahwS89eL+ywCKI4wANX2ytXfqR/LImM=; b=SXV3I2r128kGGVtwpREfvW69cSVlDXebZnmgsQ0EvDOyjvaJVrlX1O+u6FG3g7cNXuov+k 5DxYRgPg1fkdL+8dt8VLbdyLzQZMnu1MMH1frBLLIHJYIFT3iSd4A6fn3CjKmkGNvggPnd 29JnRfQe5BXKn2z1MRqABB5SpawHGYQHJwndnDHv6NEgGSlZY6jA5N/6I9Hkd0V0VL8f+E 2wQ1qlv8G2XrISugZ18HuWWS2u5TAvJF8gVSlUcTcRu7NmHgUgWTW4CaE3DKIr4dYpVGrk QnC1qKqtoUSMvovUdPyT+ubnB0nNMCEFpxVtJXqaQ/NBclrEDUD+gzru4yO6Gw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1670667929; a=rsa-sha256; cv=none; b=OAzP3sMxToqygUPyN/aFAhXWNww/wAn6jrInhXwvx3SVAtEELd9yv3Z7MCSJsTYxyy6R3K Ozllv6BDaSu/qPtCgiOqpzCv0oy4j4wojoB/ES+LhEtjPGNEIuKIyuZG6GZ/HM3vrSUv+V KWupapWhls5hm8R41IxIXlwAzkmQKgviyjzIiwrXj9VTqSFIxE3I8mcQocTCt+xeL+JrdR vHygikvWRUvxwJfHsXvl90KTbvFHzLyKTBGbQ4w7K9dgkgISq+X3SkEgKWO8Sodwam+stQ bCZ81dNmBtt7vpOtAf7NtFypQzUJugx9/I3DwphOCPKxcCqEkwvukuZt4BQfcA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b="R2Q5/csR"; 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-Spam-Score: -3.55 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b="R2Q5/csR"; 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-Queue-Id: F31E410529 X-Spam-Score: -3.55 X-Migadu-Scanner: scn1.migadu.com X-TUID: PHVlX142gZxG arozbiz@gmail.com writes: > Thanks Ihor for the response. Unfortunately, setting > org-element--cache-self-verify to nil didn't work. Profile report attached. Thanks! I just pushed a slight optimization to the footnote sorting code. Can you try again using the latest main? https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=169333e1c -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at