From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id aH3IH0NN8GXdbQEAqHPOHw:P1 (envelope-from ) for ; Tue, 12 Mar 2024 13:40:35 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id aH3IH0NN8GXdbQEAqHPOHw (envelope-from ) for ; Tue, 12 Mar 2024 13:40:35 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=NNVh4n2X; 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=1710247235; 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=5J2ck9TQM4Ny7G2FazBLy6Rsw8tVtwShHrVOLHgW4h0=; b=kzhwuHpYT8pgy60nEr3Gv4hme6Be0xPm0a5b/AC0UJrKHnbTS8D4yXziGjj0Il61ANH2Gk Oq0OGD3GG6u/m2ogCqSwB4/ZuYdDJiPeHEROin7H4KOM1a/4eIuV7TmWCnrLBOzfQhf85k DvS5GLTrMtAv5Z6E+rM5Am5cv9YauQCUJQo80qPVBGRElVJtOurtT8P05wI3+FkcLxCk48 71HA0VEQs5xjO6IKwqVs3zWES4hf/ruSxawoV5D59ebTLG4OgGnW9xGxG9G1y67IuOL9Ps zc+IbY7RrsoIAZBotkcdPGbZXGokZDspzbWrwUEqE0fKjn9UWKb4YsTAeLC7Ug== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1710247235; a=rsa-sha256; cv=none; b=SK+jZy0c+A1OMEyfSDZrrtMmjDcup/NqeYtSCbEjFsZ6mlq/J1RAkQkzSeX7sgA/EcOmZI saP/2eO+6LEvD0j+wGFBXFpHF9s8EpIDAwdKktJeGU7mLiQ6KX8A7B2TbCZicrex8dNJey nbbI6TE3pD3A1xR3w17OSpOgZfvBFHXqug1a08FtXogfDNLlPxHlDzDBmmN0AfmsuXSayh S8HYj+CmN71RwLLMgQ8+K3l5T5HU6XMTYRsxdFahFlUPMaLnSjXI/CpyNiLpRR8I3lFx14 eZPaBInHeCXP+cHCMJ64eujvv1g/W4WcNgs9uIWH/nVBrS6oP//PBfZAa/+diA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=NNVh4n2X; 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 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 49F7F5C214 for ; Tue, 12 Mar 2024 13:40:35 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rk1Q3-0008Jh-0d; Tue, 12 Mar 2024 08:39:47 -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 1rk1Pv-0008Ic-UV for emacs-orgmode@gnu.org; Tue, 12 Mar 2024 08:39:40 -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 1rk1Pt-0007iE-Q6 for emacs-orgmode@gnu.org; Tue, 12 Mar 2024 08:39:39 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 99B54240101 for ; Tue, 12 Mar 2024 13:39:35 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1710247175; bh=ilDevPAE3ABHNVG7lumAx38aVdAhAuEoVrliH/9otnI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=NNVh4n2XmnD3MrXZ3JdbFeCSlxceTDo6/jjCeRQ2cdF5daYRpZOTERaemeNUyq19h T2DP8BN6e7jAhJ0t3VURGjZS1ZSjdl2v3RSW2IDxNTPGASPaB/L5WpUnYInw3Enwi3 eNPCVYhua2Z6uzuWRKCDW3Wg/6Cwoz0wawbz6UH2ixy6GoljljOAtkh4OGZ05pAztI plERotpiKbIb8CfEIRFurMy2Y9bPf2vHtPX8CKsQXIX93SWKkhdldlIx63ELN8vLEk lGGu9fe26abKjcd1SrawjQGk464htisqIGrtOfbtdbu81YgCBn1RwI3TJLo5m0dOTU ywpHf4hBnLMkA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4TvCrk6YPrz6tx5; Tue, 12 Mar 2024 13:39:34 +0100 (CET) From: Ihor Radchenko To: William Denton Cc: Emacs Org mode mailing list Subject: Re: Things got very slow: profiler output In-Reply-To: References: <65e04d75.5d0a0220.767a3.41e0@mx.google.com> Date: Tue, 12 Mar 2024 12:43:48 +0000 Message-ID: <8734svei2j.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-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -8.72 X-Spam-Score: -8.72 X-Migadu-Queue-Id: 49F7F5C214 X-Migadu-Scanner: mx11.migadu.com X-TUID: 8pNxDd+B4KiD William Denton writes: >> 40255 60% - org-do-latex-and-related >> 40243 60% re-search-forward > ... > I spent a while with git bisect this afternoon and the problem (for me) started 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 > about font-locking, though why LaTeX is mentioned is beyond me. When I > was going through the bisect process I wasn't testing on files with > LaTeX, I was expanding and folding some I regularly use that have some > code blocks and tables with a few hundred lines. Profiler data does not make sense here. In any case, I tried to make fontifying newlines after folds slightly faster on the latest main: https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=c9b655f27 If you are lucky, it should help. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at