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 ms13.migadu.com with LMTPS id WDx0CwrwqGbH3gAAqHPOHw:P1 (envelope-from ) for ; Tue, 30 Jul 2024 13:52:10 +0000 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 WDx0CwrwqGbH3gAAqHPOHw (envelope-from ) for ; Tue, 30 Jul 2024 15:52:10 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; 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=1722347530; 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; bh=uk7582Rr7oxSeDo/pnlOAH1vZWYQL7SL3pfO17TSFyQ=; b=EWCoCi1ueqQomyn7B5knlV/vBV+GIty8a4meoDScNe8a5Nff9V6UStsZ8uY4iWbhLlJ2WH 8GHPQf8ZVsrUJa/WL+Xb8DQ0Lda7SYd6lBg3fb1Hqt8EEYI+2TAbSB5lTj9aipwusedL8w 49N1xtQYU6dpBIwElUN22VE6gulBzqSphjrV0MSeZLwZp0Qec4ytS0tWaN5Yq3E0l/MoKG 2pxA0VJBLtqzY1cQjbI4AW0OBIB3N6/4xWQxNKNQSUk6F6hnS1JuHMsHeIgA86A8xHevqa 1nH43O1VWoxaJtHZAS31bttyouFvXwOIbTMdFMtycT8CC2Bp/Qx3qC8y7EEcMw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1722347530; a=rsa-sha256; cv=none; b=dFpD6yBSdCT95EUpi9Q4PCWI3fAgYWZ5varjMh7guDBhC11FgSurc80eSSSTEPruhlHIFC kNiXMtERZyrjKEJS03Hrs1lZW1cm5GLNvRc/TWalON+AglymzSSkoveFDfrP4ZfXe+qZYG +12gntn8X4doHLshPMUCwg0jKkF/bVNQ9+kWBw3ity4MEgXN49JN5IbQdxhDZBBL5uRqGx WvJGQ/JhgnrgC/Un4MiqdkKNDNXlE5mblPHpERwMHLnMXPB++b5JhTRVn2rNRJukcgo7Xq eE7dli0wFQJekgE0ntOG2L+X8KyV8CHPQbzgFShwxPPDPWAtPtwTOpYRtuCYDQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; 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 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 F1BB11B765 for ; Tue, 30 Jul 2024 15:52:09 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sYmzH-0004gy-Bh; Tue, 30 Jul 2024 09:34:01 -0400 Received: from [2001:470:142:3::10] (helo=eggs.gnu.org) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sYmyh-0004Yo-9S for emacs-orgmode@gnu.org; Tue, 30 Jul 2024 09:33:23 -0400 Received: from [2a00:f10:121:a00:1c00:efff:fe00:1854] (helo=se13.route25.eu) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sYmxf-0005e2-Fd for emacs-orgmode@gnu.org; Tue, 30 Jul 2024 09:33:17 -0400 Date: Tue, 30 Jul 2024 15:12:50 +0200 From: Russell Adams To: emacs-orgmode@gnu.org Subject: Speedup on large file after reconfiguring whitespace-mode Message-ID: Mail-Followup-To: emacs-orgmode@gnu.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Originating-IP: 2a00:f10:400:2:425:b2ff:fe00:1c1 X-SpamExperts-Domain: out.pcextreme.nl X-SpamExperts-Username: 2a00:f10:400:2:425:b2ff:fe00:1c1 X-SpamExperts-Outgoing-Class: ham X-SpamExperts-Outgoing-Evidence: Combined (0.11) X-Recommended-Action: accept X-Filter-ID: Pt3MvcO5N4iKaDQ5O6lkdGlMVN6RH8bjRMzItlySaT+Lp1gOC34RBwe+tWi7porRPUtbdvnXkggZ 3YnVId/Y5jcf0yeVQAvfjHznO7+bT5xiExUbNqvmdkLSOzf1W2Y3z8hkeSqZT0W1YMl0fRDa99cV PSoHm0W/3adFfiYl2ntWAIulxJjWFYyGmiZKiFBv/T4GcPvCLvSpAEEGy7kYxsD3QRUnhlexiXT3 xXuXeIhevFP+kOiMW3ZJfjMJYMEj+gaXrHkgRC7/tI3CjXmVyhFHi5I2x2m/NigQZY9RWEPHh0cQ L0Ci0sRm4Wh/iZxmZw2OUofLfB7s8QYvnn3mfsztdQUSqk/AeLi65+4s/LrywTM2yEHEhvC9Izsy /NENTMQ3Kg3hL2oXz5A5E5R/dS4GkJ5hfB+qWugfDEytZYoACfRtBjLzEjgIZNLWhI/Mshn3T8Ox KyIrAogwLlirll+u0Sc2bgjgy6NE5WzPnrJ1fJyKyenPq733oZ8bAyJmHQrtppYmxMktfUX7kfB+ UdezYqxGMqsKjARq8PBC4qgxMmglBiLsgrvXOb7qEGUwgxHIagHkgJmlqPNWnLI1oovhSJcbnX/H QqL/X9rNCJCc6iESJvKm1NV8gkr+Wu8ScVDXinOVyuIpITQ9z3M3DKHTJKUszoTkZ7Os22LS8m6I l7ZW6AygX2t5Vl37q/VM5NYUCLrqmWhY0x+N8EZarYJ3mJdgm5kNXP0WDog0Kp6V8e/Bxqg0FiBG uOJ8LsqvTQ6AFTayP6dTZsf3XPpdToxsiphzBDqnNyjqlruS5wNH19GBakJIU7SXv9CK6g5wx6fl tbaaPuCmX416XzZpXq3zmN1DVbvEznYzgq9IOJt7gNF+dEVzoz/J47oQLlEQQ2ftKMYSwlXQE9M6 7mF3F7WwWxj+kkBtktAaPaTVUFQrW0wReqFnV8uFGXj95C2O75T156Daw4/c5VjDM8pOdnVUQ2Qu 9L8TtMXO4oxlCvk+f+3U2jpSj8FKhfs/SjAiYnNGFdRN3CtPPBjSHkIxZXA4TzarQ3HAefg5I7dq nJlGsrVQ6Z0POpPUqTFWuATUoSyaA1TzQpMNBxbB7RLiYFYq922Wf+VLnUUJCa5XEkPBdYzH5SHs 7OXwC7D2RhUakVeP0KKaUuURe5cMAahC9AqyQAnpqFMUCHx10ohhTE8xL7hrJSk60SF3F6RYOYr2 X-Report-Abuse-To: spam@semaster01.route25.eu X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:f10:121:a00:1c00:efff:fe00:1854 (deferred) Received-SPF: pass client-ip=2a00:f10:121:a00:1c00:efff:fe00:1854; envelope-from=rladams@adamsinfoserv.com; helo=se13.route25.eu X-Spam_score_int: -10 X-Spam_score: -1.1 X-Spam_bar: - X-Spam_report: (-1.1 / 5.0 requ) BAYES_00=-1.9, RDNS_NONE=0.793, T_SPF_HELO_TEMPERROR=0.01, T_SPF_TEMPERROR=0.01 autolearn=no 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-Queue-Id: F1BB11B765 X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: -6.42 X-Spam-Score: -6.42 X-TUID: xQephmFLIMv/ I wanted to let others know about my recent experience tuning Org. I'm on Emacs 29.3 with Org 9.7-pre from git. I have a large file, 5MB, 134k lines, 4k example blocks, 1200 inline images, 6500 timestamps. It grows rapidly as I use it for customer support at a very active customer. I do try to archive completed tasks twice a year to try and get it back under 100k lines. I've had some performance problems with the file as it grows. Recently I was trying to scroll up by just holding page up, and within seconds Emacs would timeout and it could take up to 10 seconds being frozen until it caught up. I asked about this in the recent Org meetup, and I was given great information about how the number of faces used in a file can strongly influence the speed of navigation. I tested in fundamental mode and still had slowdowns, and in emacs -Q it ran normally at full speed. Something was up with faces. I went to bisect my configuration. I don't use many packages, but I dutifully bisected down all my use-packages calls until I had none. The problem still persisted with no add-on packages. I started digging into my configuration, and found that if I disabled global-whitespace-mode the issue vanished. After some searches, it appears that whitespace-mode highlights each space/tab/newline with a face. In a small file that may not matter, but in bulk it was crippling. I changed whitespace-mode to use the display table where it substitutes other characters for spaces instead of using faces, and the performance problem was solved. The following setting made all the difference: (setq whitespace-style '(space-mark tab-mark)) Perhaps I can save someone else some time troubleshooting. ------------------------------------------------------------------ Russell Adams RLAdams@AdamsInfoServ.com https://www.adamsinfoserv.com/