From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id CC1DI3+57GVPHwAAqHPOHw:P1 (envelope-from ) for ; Sat, 09 Mar 2024 20:33:19 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id CC1DI3+57GVPHwAAqHPOHw (envelope-from ) for ; Sat, 09 Mar 2024 20:33:19 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=williamdenton.org header.s=protonmail header.b=XXXZjbxr; dmarc=pass (policy=none) header.from=williamdenton.org; 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=1710012799; a=rsa-sha256; cv=none; b=uJKvv1VKHY/kvKcR150DVJ34VGB36Jp/uIhjMktKvZyVU9VDPM6Hug+hMUN58/TjKgOPui A02APN8oy/lun36+sDoP5C2MFMpaW7zHXZNKZJw5LZcyaiRl41ZgmZFYh3WtQRFZAqmIey rfWk6fewv7QPbWMDya8dLzzPA2hReggz3wTKIiLQbndl3p7qCIFNJAI+auGsCOYmFIwzY0 4prytWiV3S3j9odJaERs7siGMZ/hXnjwSloRsalH4SVhw9nQEYhOj1OQyPbDXzKpCM7r+h fQBM4YScR67tRNuLasBcVVT0OEBnfkoGpuOS4Ig2bZ3puwn+OQUKgEvHgSaIJg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=williamdenton.org header.s=protonmail header.b=XXXZjbxr; dmarc=pass (policy=none) header.from=williamdenton.org; 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=1710012799; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to: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=ZYLXhEHQX64wimKJGokLtfAVIGX/V0M6Qzi1/SOiPZ8=; b=CBwQPhbzdK88Rxd0I3GCkF3pqKF0/5NXLPzrVAV8X74qt2AWLe9uZ5JvnTsCQdg4XD2CwR mSOTVpKykOva0xI2M5070J/mHsumIw1nfbDPSohM+TEERKpUtIiBbxm0XlZCr4AkIgMtun a/PT5XL/RuXcJe/l6Wco3eRqnJfz5jVWTad+QqlykY2P6xpR0FjzihrUF6hMgGJzKhnGhZ 4mmNA3iwlm09qw6cTENlCE5lSwjE9m+nFzuts6nL08sTT3+hSeVKGdBNDGEt4dhtGVK9VD rx5mZYHhAHolBZvyfR+wYiGtv2hcuqJV5hsUpPXPiebsyCPS8ckUPInaNrhdRQ== 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 47B4B80BC for ; Sat, 9 Mar 2024 20:33:19 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rj2Mp-000742-Kb; Sat, 09 Mar 2024 14:28:23 -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 1rj2Mo-0006vF-8w for emacs-orgmode@gnu.org; Sat, 09 Mar 2024 14:28:22 -0500 Received: from mail-4323.proton.ch ([185.70.43.23]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rj2Mk-0003pM-Be for emacs-orgmode@gnu.org; Sat, 09 Mar 2024 14:28:21 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=williamdenton.org; s=protonmail; t=1710012493; x=1710271693; bh=ZYLXhEHQX64wimKJGokLtfAVIGX/V0M6Qzi1/SOiPZ8=; h=Date:To:From:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=XXXZjbxrbb9mnK/wJC35kzn6OVU8d5hplAlGf7cBwQhGc7w270KnI4efKxKIBa/GO c9EkI7a3nb5SE0t/WK94qFq1sW/gFwvR6nVye7822+uczyhtPRmDA/bU1WVz9A/yLx 7qzYExe01y+dKTX6U3mfYQuybZpluuuLZeNmus8PPTafL9AljW0Dlb6jFfYzPiQ94k XZvii/Byzt7x5z2ZeQVMfbqZBsTMRWHzjNdqZAFMzY+t7WNQfiwD8yNsqSVTxWzrV+ H9jeQaq6lh3ji7JDLQftUC7u+NBeZ6j893AhThZcwm1+fHWyChsnTZnJENzF0vWpGT AIBpSwmYD20Cg== Date: Sat, 09 Mar 2024 19:27:55 +0000 To: Emacs Org mode mailing list From: William Denton Subject: Re: Things got very slow: profiler output Message-ID: In-Reply-To: References: <65e04d75.5d0a0220.767a3.41e0@mx.google.com> Feedback-ID: 95794763:user:proton MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.70.43.23; envelope-from=william@williamdenton.org; helo=mail-4323.proton.ch 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, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, 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-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 X-Migadu-Scanner: mx10.migadu.com X-Migadu-Spam-Score: -6.70 X-Spam-Score: -6.70 X-Migadu-Queue-Id: 47B4B80BC X-TUID: /v3GsiGV498E On Thursday, March 7th, 2024 at 11:12, William Denton wrote: > I recompiled Emacs and Org last night and closed all my buffers except fo= r two medium-sized ones, neither with any LaTeX in them. I restarted and sp= ent a minute or two with one buffer, closing and expanding headings, and ju= st moving around without typing, and it quickly slowed down. When I did do = a bit of typing it was very laggy (and will only get worse). The profiler s= aid this: >=20 > 44032 66% - redisplay_internal (C function) > 42619 63% - jit-lock-function > 42603 63% - jit-lock-fontify-now > 42551 63% - jit-lock--run-functions > 42547 63% - run-hook-wrapped > 42543 63% - # >=20 > 42535 63% - font-lock-fontify-region > 42531 63% - font-lock-default-fontify-region > 41987 62% - font-lock-fontify-keywords-region > 40255 60% - org-do-latex-and-related > 40243 60% re-search-forward > 12 0% org-string-nw-p > 1224 1% + org-activate-folds > 156 0% re-search-forward > ... >=20 > I'm happy to try anything else ... I spent a while with git bisect this afternoon and the problem (for me) sta= rted here: commit 5d186b499dde97f59a91dc11f4c4a15113d29f4d Author: Ihor Radchenko Date: Sun Feb 25 11:42:44 2024 +0300 org-fold: Refactor fontifying newlines after folds That seems to fit with some of what the profiling showed, in that it's abou= t font-locking, though why LaTeX is mentioned is beyond me. When I was goi= ng through the bisect process I wasn't testing on files with LaTeX, I was e= xpanding and folding some I regularly use that have some code blocks and ta= bles with a few hundred lines. My Lisp isn't good enough to see why this commit might have changed behavio= ur. A couple of people had slowness caused by a spell-checker that was eas= ily fixed ... has no one else seen a problem dating back to late February? = Ihor, does this suggest anything to you? Is there anything else I could t= ry? Bill -- William Denton https://www.miskatonic.org/ Librarian, artist and licensed private investigator. Toronto, Canada