From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id UCc1OvaCmGehSwAA62LTzQ:P1 (envelope-from ) for ; Tue, 28 Jan 2025 07:10:47 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id UCc1OvaCmGehSwAA62LTzQ (envelope-from ) for ; Tue, 28 Jan 2025 08:10:47 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=lambda-y.net header.s=MBO0001 header.b=u2AfWwLb; 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=lambda-y.net ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=lambda-y.net header.s=MBO0001 header.b=u2AfWwLb; 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=lambda-y.net ARC-Seal: i=1; s=key1; d=yhetil.org; t=1738048246; a=rsa-sha256; cv=none; b=pUYu3kXJh34FET+xtrhg9x33+IlC7YRGKPysJGcPu/Ld31X6no5ytw54vSFwBJXNFmLX4h qRZE0S3FTtnJ2d7OO1KRBzEcKrq6VH83c+cjBBpt50oWfgJ9ZF0HaNzEi2Nymm15l6xQjQ erKBJNT9d+UhqWO3iW4i5gkoISp265MPHeD4GmvQ1dutm414Npmuj3O3Ohmra/PwldTjQp JRXSIRkwspH2JJ8rdSbC0L51ZilIh2B/R8rmEMPRSHHFKemXzYwILOhu1AnO0JhdFAedNY LlkWp73dT4rYIwjTVcaXIDyyEy8AZAxdgLWOT4CyiC4G7BK9ol4q38ys+4p4Iw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1738048246; 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:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=TN1n1QX44hsSzN4h7aCv2Vi/ZxpdHFY4oioWwldIEjY=; b=i4ZgxRiN2YuiHtVw4Ct1BqX6zexzq3eqszKg+cpGG3sz5YBt5AdADWT+/WogiR6Oy2znpq Ont5E2qUz2aBh5B9ruhYqppK23Um/BgZBDvCrg5zD+nu6vWMv+oKodAEuAWUMT7EG0T54C ePC6X79dFcRfqXM/U6XtuNzFaTma6EWP5SjAHJ7Rd78Jt3oIAzErJw7wkAcC8aGNbN8tVW IZg5+aviW8hsB4WaTT79Kv1PPJ2v0y0/hd1nweKnlxITKEm1iiIPBnvlm+hEkv7+3/13ut 1FP1ZbXkk4f+RijNaXYzS3Cvqd0ESrNxmeaVH76yeXCLNbdkc6pgzahjoHFixg== 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 B37011D36F for ; Tue, 28 Jan 2025 08:10:46 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tcfjU-0003ta-AM; Tue, 28 Jan 2025 02:10:00 -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 1tceek-0006ju-1P for emacs-orgmode@gnu.org; Tue, 28 Jan 2025 01:01:02 -0500 Received: from mout-p-103.mailbox.org ([2001:67c:2050:0:465::103]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256) (Exim 4.90_1) (envelope-from ) id 1tceeh-0005rV-0g for emacs-orgmode@gnu.org; Tue, 28 Jan 2025 01:01:00 -0500 Received: from smtp202.mailbox.org (smtp202.mailbox.org [IPv6:2001:67c:2050:b231:465::202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-103.mailbox.org (Postfix) with ESMTPS id 4Yhvls4T5Fz9skc for ; Tue, 28 Jan 2025 07:00:41 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lambda-y.net; s=MBO0001; t=1738044041; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=TN1n1QX44hsSzN4h7aCv2Vi/ZxpdHFY4oioWwldIEjY=; b=u2AfWwLbxoJ+R5s7ECeHuYpC5Fyw5LZErlBJFpH0nOYnvBXZUPULDa34m4LtfvFkHV6AD3 h+LcNtpMAhR5CE/1RB1srwqwVn5ujdtXa5XedI6mueIbVwE0dg+FbS0nHQdddB8dx/gmbz qQzpFEPcRlup7R9pG4uBSCYCxnti4XuuGylmh2jplCKF4fwYCN3QM39g/zYNSeOEH7AGsX jNhGAW29IqraSF920XPb2I1aqSGPD5HtgmQQPFTixzQiZxQwWN3XcYW2T0/0ZU+ncTMkFq nQTAjTb9GyZ95Zt5yg8nn8NNVTSaptX8aZN58KnVAnLJARv8/X4bb+p2n2AFVw== From: Benjamin Slade To: emacs-orgmode@gnu.org Subject: `org-do-latex-and-related' performance issues Date: Tue, 28 Jan 2025 00:00:37 -0600 Message-ID: <87frl31nqy.fsf@lambda-y.net> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Rspamd-Queue-Id: 4Yhvls4T5Fz9skc Received-SPF: pass client-ip=2001:67c:2050:0:465::103; envelope-from=slade@lambda-y.net; helo=mout-p-103.mailbox.org 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, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, 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-Mailman-Approved-At: Tue, 28 Jan 2025 02:09:58 -0500 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: -3.19 X-Spam-Score: -3.19 X-Migadu-Queue-Id: B37011D36F X-Migadu-Scanner: mx10.migadu.com X-TUID: 136BNTZVsfo+ --=-=-= Content-Type: multipart/alternative; boundary="==-=-=" --==-=-= Content-Type: text/plain Content-Disposition: inline I had `org-highlight-latex-and-related' set to `'(latex script))' and found that this (which triggers the running of `org-do-latex-and-related' ) seems to incur quite significant performance hits, especially with large Org files. (Even moreso, I think, if they have lots of headings - is a good example for this.) Running with Emacs 30.0.93 and Org-Mode 9.8-pre. --==-=-= Content-Type: text/html Content-Disposition: inline

I had org-highlight-latex-and-related set to '(latex script)) and found that this (which triggers the running of org-do-latex-and-related ) seems to incur quite significant performance hits, especially with large Org files. (Even moreso, I think, if they have lots of headings - https://github.com/jdtsmith/shakespeare.org is a good example for this.)

Running with Emacs 30.0.93 and Org-Mode 9.8-pre.

--==-=-=-- --=-=-=--