From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.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 uKUCLDyUTmWHfgEAauVa8A:P1 (envelope-from ) for ; Fri, 10 Nov 2023 21:36:12 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id uKUCLDyUTmWHfgEAauVa8A (envelope-from ) for ; Fri, 10 Nov 2023 21:36:12 +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 8D560463EC for ; Fri, 10 Nov 2023 21:36:12 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=QLGxLdsH; dmarc=pass (policy=none) header.from=gmail.com; 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=1699648572; a=rsa-sha256; cv=none; b=oQ0eP6Q5w5ThjdzRejdzefhvC4SBZFkptBA7zttGy42+GtTZ13DsdDCPGGcPrnHJWFPGoD j89fbjZQQwCel4a+GUXE6qB4GPvYwe7tXKVc/SDegh11Ng32ZNwxFI4dq3N9668Kt0Mg0Y fChvKQBMoE1HvpXz5ULNlHKbvVg97Qv41EVaNWOAePozNJoaKGuXetI8s72+T8ZArXI+P5 g5zQ3PGz2swiygx7wEK9+Mxn71ltSNQN6do//PDRW0k3Lw5t/O1zXvomSREL8GtwgxVVHX 6C317Hrn2eN1DNlb/H0uWfqhqN8Dp6mIsIKFHBlCGiG1kH9uZsUqW9mIouanpg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1699648572; 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=D/Ez6n+zve88ZzpZf3lw/i9i3ltoRV6+AZsxpHzbsSQ=; b=NVkHQJEt7jAzFHiieMOeT7zd5Mof4lHNiXBLOstHn/Ty5AFmliYShM2RVZvluDDzg1fsCl TWrSCj/1vsZfB++CjGbI17aAZz0JjT95z4pbvPBB5ayPA25y22VF7Ni77PqJKr60e0e7BC lSwdRqHXLWr62UoPUsJ2nm3VQDf/2PCBMXG/5Qp8ThuM1OukI2I0SjhUCFx7wePOLWu/cI scjE3fcgbvmRmkcSkXj4UKqJCY0eJhi5klHi6gDcnP0bzKCKQnIOOVq/btUcG3jSGNMaPt Llsftm2tfxr9Ra1podQl0D4fw69RdNqev3PD8S41XADIRMKIdAjFNipGVk8z0g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=QLGxLdsH; dmarc=pass (policy=none) header.from=gmail.com; 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" Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r1YDv-0006m0-Jc; Fri, 10 Nov 2023 15:35:27 -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 1r1YDt-0006lV-Np for emacs-orgmode@gnu.org; Fri, 10 Nov 2023 15:35:25 -0500 Received: from mail-pl1-x635.google.com ([2607:f8b0:4864:20::635]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1r1YDs-0001wd-3O for emacs-orgmode@gnu.org; Fri, 10 Nov 2023 15:35:25 -0500 Received: by mail-pl1-x635.google.com with SMTP id d9443c01a7336-1cc316ccc38so21099115ad.1 for ; Fri, 10 Nov 2023 12:35:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1699648521; x=1700253321; darn=gnu.org; h=mime-version:message-id:date:subject:to:from:from:to:cc:subject :date:message-id:reply-to; bh=D/Ez6n+zve88ZzpZf3lw/i9i3ltoRV6+AZsxpHzbsSQ=; b=QLGxLdsH1MtvlT1UqvpLi+R9ItFJs6jCE0A1yTg1r4hMLP9IKohVckCQ8baSEhu4GI pmwUCLr7LobRP3DAWqN0fyXUWK9DBF6muPnCzq6jKo9cDTYIofcQr/3e8+Dgjtrm2ZPW 3GONOAPGqEKWcaP68Pz3uV52ppaviGcfKn2LgI6iQaTTa3y64tjOGJBs429PvcjQxQav yi0iUnMpmcmPb7HoD5xrFjb1Ei2rP3f7TdEYTznZwsAxuaz+EpxIJ7Dz7ru6STSc1uGZ YmbIcRHBC9loFNr7xz1OubnG5KTjRrtg235DwU/ob3vXzYe+pqY6xFRqVONYPzeWXZWK xeGw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699648521; x=1700253321; h=mime-version:message-id:date:subject:to:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=D/Ez6n+zve88ZzpZf3lw/i9i3ltoRV6+AZsxpHzbsSQ=; b=i98HwOQdqF8BzSpIkNp9Fngx35F+f9gh9xTZ5a8kdLgKY6+9pOJr2sG5ydtoGjLAkz FvT42CdCdN/SbYmF8bfD89iXHo77Bcxol+1PkT7ld/Q1Cw7DVIbLangB2C26JiuwAqUb 9AVKAPKXoliZ68UyYQOJbZJ4+0UOU0+T3qn52aBPX4PI6eXCbkml5geXD45HE0ibdYmR 4Ucqb4QIDDaSXF0tN7dkuofdxo7nySWHZLutd/ns171nKaM+4n25Go48a4bcrcvNjKN6 Vr1x/ML5+IuLzf/Cu0MiK8xz6XXgqI3x0p5DKFr9oGE689zjVDHO8v4WQXD1aCwAzuYc ZCoQ== X-Gm-Message-State: AOJu0Yy26RaJ+553khwvdTtGE4Tt0GCTTsxskJrJe6jbIO1Qk/PJ1bCg LAFUlUGdT/T7keoM6cu4qgpHS/s+VDo= X-Google-Smtp-Source: AGHT+IErOVrEq5zlTRgRyIHkPCfNFKVyBCmClEhjn8T+gkfGibLK1r8FzA+NCqbZfoeIw3/4RS+0vQ== X-Received: by 2002:a17:902:6903:b0:1cc:33f1:3f03 with SMTP id j3-20020a170902690300b001cc33f13f03mr411789plk.2.1699648520946; Fri, 10 Nov 2023 12:35:20 -0800 (PST) Received: from localhost (193-119-104-110.tpgi.com.au. [193.119.104.110]) by smtp.gmail.com with ESMTPSA id a13-20020a170902b58d00b001c9db5e2929sm57641pls.93.2023.11.10.12.35.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 Nov 2023 12:35:20 -0800 (PST) From: =?utf-8?Q?Sebastian_W=C3=A5linder?= To: emacs-orgmode@gnu.org Subject: Slowdown with large headings in view Date: Sat, 11 Nov 2023 07:35:17 +1100 Message-ID: <87il69cpoa.fsf@nixos.mail-host-address-is-not-set> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::635; envelope-from=s.walinder@gmail.com; helo=mail-pl1-x635.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, 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-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Scanner: mx11.migadu.com X-Spam-Score: -6.42 X-Migadu-Queue-Id: 8D560463EC X-Migadu-Spam-Score: -6.42 X-TUID: 47w6EuqrbWto Hello! I have massive org-mode file with thousands of SRC blocks. As the file grew, I started to get very poor performance, but setting `org-fold-core--ignore-modifications` to `t` solved it. However, I still get very poor performance when a lot of folded headings are in view. It gets slower as headings with more text hidden inside its fold come into view. I have tried running the profiler to find out what the issue is, but no matter how laggy Emacs gets, the profiler records practically no CPU samples or memory usage. When the massive org buffer is in view and showing large folded headlines, any command run is very slow, even if the action is performed in another buffer entirely. It returns to normal when no window is showing the headings, as well as when I bring the folded headings out of view or unfold them. I tried disabling font-lock, but it didn't do anything. How can I profile this, or does anyone have a guess of what could be causing it? Thank you! Sebastian