From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id CNpoGdNfYWBcKwEAgWs5BA (envelope-from ) for ; Mon, 29 Mar 2021 07:04:19 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id EOhZEtNfYWBSTgAAB5/wlQ (envelope-from ) for ; Mon, 29 Mar 2021 05:04:19 +0000 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 C2BB619CDE for ; Mon, 29 Mar 2021 07:04:18 +0200 (CEST) Received: from localhost ([::1]:38746 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lQk4X-00065f-F5 for larch@yhetil.org; Mon, 29 Mar 2021 01:04:17 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55566) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lQk3z-00065Z-Ay for emacs-orgmode@gnu.org; Mon, 29 Mar 2021 01:03:43 -0400 Received: from out1.migadu.com ([2001:41d0:2:863f::]:38701) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lQk3u-0000Ch-9J for emacs-orgmode@gnu.org; Mon, 29 Mar 2021 01:03:43 -0400 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kyleam.com; s=key1; t=1616994214; h=from:from: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; bh=rUi32I+6LuH/0aUT0aQHiUmzWnQlgHecWfk/tv9y2/E=; b=g0iAxGX9WHxXxPVXxYhPa8+KGDmkaMKA49Tgft3rikWaJ0cHMi0J8Xo4NZlZdmNimNXjXM aAQQ9pFRZniH6amOAkgtXI8lqQnwEXcByDaVUp0fjrPePLMC6zoTtvJf84wdFgNpcAjmEx /Dz6ww+jaGlnW9lV1LiYFQe11C9qoPgeiZ6IjBvD7GV9nvZL+HgDqRA/Axe6Z4a5D1zpeU 9z8iYiz6mv2kSmDSIaqihrk0gkGFcveN3EnJUEC3oXpH3sOlxw1bxNKG+znYbYrGr/Psi/ 3Un4+IDt6af0Z9eIAjkL0tNWfd008/X9HkLm1AQ/xiuqefrzQVieAMwyntJUJA== From: Kyle Meyer To: Leo Okawa Ericson Subject: Re: [PATCH 0/1] Add option to delay fontification of source blocks In-Reply-To: <20210325171941.101077-1-git@relevant-information.com> References: <20210325171941.101077-1-git@relevant-information.com> Date: Mon, 29 Mar 2021 01:03:28 -0400 Message-ID: <87ft0e7dr3.fsf@kyleam.com> MIME-Version: 1.0 Content-Type: text/plain X-Migadu-Auth-User: kyle@kyleam.com Received-SPF: pass client-ip=2001:41d0:2:863f::; envelope-from=kyle@kyleam.com; helo=out1.migadu.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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: emacs-orgmode@gnu.org Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1616994259; 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=rUi32I+6LuH/0aUT0aQHiUmzWnQlgHecWfk/tv9y2/E=; b=lu8XFToVQeeFJUvRXS7utuApEWPrDlensGgo9owLAIcWR5bNjPaRAU86giCWeEI4xzkLBh DaeWvP9xgnD6zDz32Nr3QVdHpNmPyRbUvsAc3822FYgE0RSemWxZ5QcJOjKXq5eXuHFwL6 oeoLjw/5TEFlZsPIt+sjVJqGUKivBiz1J7Rj5zPtby76yj1b8pDEMPT4+txpuRUy05v8R8 UCERvs7NveAM2D6HRttEycsEaKRa7F+S67cNyqbNp8obTH2a/87Rad67KQEu/TgVA0MC/p rTEgCQ2Y/1zLh6MAePrPNRrD/eWr0F2d3dDyQi3GdK0csm++9UUobup9C2Qprg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1616994259; a=rsa-sha256; cv=none; b=p5TdPOemclamFzC3YpwYH4NYwoo4sn5ADMBagljCvZ79hy7eUzOv6NBz+sec2/CGybmDsi Q1NhaZ9C94JfDB9VK1QDCVtwz/ghSu59vK0mDHgmvnGJKIYTDemSD/ZGX5pjDKvientiNB hJM+6B/fDRt8GPklLNJxHbyeWaqXTLj/mEJLhZwVyvr5OyLEllVyqC9IwU8DYYXkURctRG r/DD50ImcBVRJk4dQSB7p8nQQ40NZLcfk15TCefC8j471QeaE/9WDaBuUKKGaXCWG8i3L0 PxRtVZ/l3Zgnw6Z0Yu2GK16qx4bycVAtfSshXYj1SfYT6cNBnerds6nhuXSkgQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=kyleam.com header.s=key1 header.b=g0iAxGX9; dmarc=none; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -2.62 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=kyleam.com header.s=key1 header.b=g0iAxGX9; dmarc=none; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: C2BB619CDE X-Spam-Score: -2.62 X-Migadu-Scanner: scn0.migadu.com X-TUID: BTP2rVJH0rHb Leo Okawa Ericson writes: > Fontification of long code blocks can be very slow. The patch, which should be > in another other email, mitigates this by > adding an option to delay the fontification after the user has become idle by > using idle timers. This seems to be faster from my limited testing, but I'm not > sure if something will go horribly wrong because of the timers. Thanks for the patch. My initial reaction is that I'm not sure about adding an idle timer for a particular aspect of fontification. If we do go this route, I think the case needs to be made why this spot is special, and why we don't expect or would reject follow-up patches for this and that other area. Have you explored whether jit-lock (e.g., jit-lock-defer-time) helps for your use case?