From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id mKfHAo1N4GVLoQAAqHPOHw:P1 (envelope-from ) for ; Thu, 29 Feb 2024 10:25:33 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id mKfHAo1N4GVLoQAAqHPOHw (envelope-from ) for ; Thu, 29 Feb 2024 10:25:33 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=P+Zzw1IS; 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=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1709198732; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=sJkExD5++f/1cyz7xW5LnC7SH6Z3lb73uiWq9n1Tin8=; b=H0+r2JTFRquX3fwW9JyjxSCk1XEL0/Wp98U2nwqxQrg0MqDdJMGpuTVzmcfTlHNH5BODA+ sB5IGj+nDyEm5pRbZKxogrLEleON+DwuAcjOtRz7aMXd4efhDxGGTJxlIGExg7yusHNiy+ p9GT88FIIGhD2+0sHD4L71Ohv5T4EPQRekQ0ryXpLPJrTf++SCQq7mqevEXHltfyHjcSDN ToB8gpVVo8YHNhf07M274ZTVmJQopS0dYrtFLyjgF1TwjF3bQnxyd2F9AWFXIc4Az79+s3 kG+oOTQRvUUZSNMH7uuSb4pcvCggMWKJdrJ311HCPW91zEUhmNjBXgG1CldQ8Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=P+Zzw1IS; 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=gmail.com ARC-Seal: i=1; s=key1; d=yhetil.org; t=1709198732; a=rsa-sha256; cv=none; b=G9J+iSKtIGVV+2/CH5ydVSt62zKm103GKscO/ft6krtQkIpnGCeHwmu8Na//cZgaG7Ybgt JBefhECDSTQnqtaS5x4xoX9OXdUsCY+xSPrFZzyI7xCOliw+VXjQ9GFQEnxwDLqOLA4IPP se76SA70R1nCfoO1m88EWfJX0LuqMRmuJhuCpn9J52Tkftk/4QEwdjACQw5FeWEkozUxZR nHK+QD43+HozkaoR9zR2RYQ9rXNDkTmxIOA/EaPEakj46lEP0ZyVT2WPZ9rjyFa301ttl5 MS2zL/HgoeQx7alGbsy35B4wv/7yD0YaI3620G8mcedT6ht0FlEC2xbpvo+Fqg== 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 DFC9C274A9 for ; Thu, 29 Feb 2024 10:25:32 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rfcfK-0001jl-Aj; Thu, 29 Feb 2024 04:25:22 -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 1rfcfC-0001iw-5r for emacs-orgmode@gnu.org; Thu, 29 Feb 2024 04:25:14 -0500 Received: from mail-lf1-x12f.google.com ([2a00:1450:4864:20::12f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rfcfA-0002IZ-8I for emacs-orgmode@gnu.org; Thu, 29 Feb 2024 04:25:13 -0500 Received: by mail-lf1-x12f.google.com with SMTP id 2adb3069b0e04-512e39226efso565951e87.0 for ; Thu, 29 Feb 2024 01:25:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1709198710; x=1709803510; darn=gnu.org; h=mime-version:date:references:in-reply-to:subject:to:from:message-id :from:to:cc:subject:date:message-id:reply-to; bh=sJkExD5++f/1cyz7xW5LnC7SH6Z3lb73uiWq9n1Tin8=; b=P+Zzw1ISVXRnFdhaGDma1UzJFwDTPgGkzYlo+EcDsJVBLcAmWfteEgneqjz7si4yL2 l0nBtQYAGmyLCuEKBRW/p9EFRYHOGLW8gJbVypDv4WIoenp8brjLGoJuOwKpTf5O6F6C pFGeqHjs2chynwaiYNijj5hCYeYx6PCJ8W/EMexLHqacQquLdN74XXYHTO2R41jvs26e dd37M2Aakg6utmHgUXKr+d0DxZAevzRlnzkgDRSmB+7A8tr2Hpkg34Vrz2Y3TA9QFwLn eKICHa/afpMODTDAOvljk9JktIquaj/RaKKylM2OjSr8SAs7TBJphS5BwMmIbM/es+/A Etuw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709198710; x=1709803510; h=mime-version:date:references:in-reply-to:subject:to:from:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=sJkExD5++f/1cyz7xW5LnC7SH6Z3lb73uiWq9n1Tin8=; b=thMqHKV1YZrOCfaGkYmSl8qs2sON+221xDtZEY2xIsepKneFjRC/Ms3cx4Cwksarc4 ZL9ESw271BrIQXIjk//sojSdsU1NFJA0aVou9i7wOmWjHussX9KTBq2RA0CiZcSQEyJf 9nGG76IClbJ3pdE6/+n4CE6sU2ccj4Nmd/+Rf2SquE/74GzQZFO254dq8T+/evUX6DXa QuYuWFkcovlqb0kV9TGHuACqEU2gLZfz22Ha+NttL6+dj79pEnVEc/jAY9Lwn5nE/8My LLpcaB//82xSbRmzSFi8OK2Opqd6+Hr+xxSMqR8JLFnNRNVYJjloxVyouMgZggfzdkGL R0Hw== X-Forwarded-Encrypted: i=1; AJvYcCU1j1RUdUDEA637V0Wq0enXmPRIH+gO48aT/dsaCA9ukDTJQJETzjd26MuNwtfgZWIfxKdKlPf31h88vrNk2Hw8g87tvcw= X-Gm-Message-State: AOJu0Yw8D4jchNfYjnMAI+AStA44WOXvtZ/BwnvkApD48MKFAEWHfoAU 3Nga0ITqTmuhzxdZ5bMH9EUFi9eKJHduI5wjUqwdjI09JnAb0FuA X-Google-Smtp-Source: AGHT+IGweRsoiqB+D4CPLG4/gJPkwgVlOH5bcUBU9zqYfxf0Zv34JdljM3BbmIPa9FBSJ9IaetOwMA== X-Received: by 2002:ac2:4c28:0:b0:513:238f:633a with SMTP id u8-20020ac24c28000000b00513238f633amr979126lfq.46.1709198709447; Thu, 29 Feb 2024 01:25:09 -0800 (PST) Received: from keynux ([2a01:e0a:505:3460:1c18:688d:ece4:372e]) by smtp.gmail.com with ESMTPSA id ck17-20020a5d5e91000000b0033e05589096sm1240964wrb.89.2024.02.29.01.25.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Feb 2024 01:25:09 -0800 (PST) Message-ID: <65e04d75.5d0a0220.767a3.41e0@mx.google.com> Received: by keynux (sSMTP sendmail emulation); Thu, 29 Feb 2024 10:25:07 +0100 From: Bruno Barbier To: William Denton , Emacs Org mode mailing list Subject: Re: Things got very slow: profiler output In-Reply-To: References: Date: Thu, 29 Feb 2024 10:25:07 +0100 MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2a00:1450:4864:20::12f; envelope-from=brubar.cs@gmail.com; helo=mail-lf1-x12f.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, MSGID_FROM_MTA_HEADER=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 X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: -8.80 X-Spam-Score: -8.80 X-Migadu-Queue-Id: DFC9C274A9 X-TUID: 8xJzS0HZSl0F Bruno Barbier writes: > Hi William, > > William Denton writes: > >> I rebuilt Org and Emacs from the development trees and something is wrong, because some Org files I use regularly have become incredibly slow to use. I rarely use the profiler and don't know what to make of what it says, but I opened a file and ran it while I moved around and expanded and collapsed some headings for a minute or so. (It was so slow that it took me a minute to do what would usually take me a few seconds.) I'll paste the results below. Does that say anything useful? There is a little LaTeX in the file but not much. >> >> Any help on interpreting this would be welcome. I can try reverting to an earlier Git commit tomorrow. >> >> Bill >> >> Samples % Function >> 73203 70% - redisplay_internal (C function) >> 71496 68% - jit-lock-function >> 71488 68% - jit-lock-fontify-now >> 71472 68% - jit-lock--run-functions >> 71472 68% - # >> 71472 68% - font-lock-fontify-region >> 71468 68% - font-lock-default-fontify-region >> 71436 68% - font-lock-fontify-keywords-region >> 71124 68% - org-do-latex-and-related >> 71124 68% re-search-forward >> 228 0% + org-activate-folds >> 16 0% + org-fontify-meta-lines-and-blocks >> 12 0% + org-activate-footnote-links >> 8 0% org-activate-dates >> 8 0% + org-activate-links >> 4 0% org-do-emphasis-faces >> 4 0% org-fontify-drawers >> 4 0% org-raise-scripts >> 28 0% + font-lock-unfontify-region >> 4 0% + font-lock-extend-region-wholelines >> 4 0% text-property-any >> 30951 29% + command-execute >> ... > > Did you customize org-latex-and-related-regexp ? Is it still slow if you set > this to nil (which is apparently the default value) ? > > If not, telling which version of Org, that you were using before, might help. Oops, sorry, the customization option is: org-highlight-latex-and-related (the other value is computed by Org) You may try to change that option org-highlight-latex-and-related to see if it helps. Bruno > > Bruno > > >> >> -- >> William Denton >> https://www.miskatonic.org/ >> Librarian, artist and licensed private investigator. >> Toronto, Canada