From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id gIhLKYVchmFrEgEAgWs5BA (envelope-from ) for ; Sat, 06 Nov 2021 11:44:21 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id 8FAIJYVchmHwXAAAB5/wlQ (envelope-from ) for ; Sat, 06 Nov 2021 10:44:21 +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 5093686C7 for ; Sat, 6 Nov 2021 11:44:21 +0100 (CET) Received: from localhost ([::1]:52720 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mjJBM-0000t2-En for larch@yhetil.org; Sat, 06 Nov 2021 06:44:20 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55322) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mjJAJ-0000Xd-Ua for emacs-orgmode@gnu.org; Sat, 06 Nov 2021 06:43:16 -0400 Received: from outbound.soverin.net ([2a01:4f8:fff0:2d:8::215]:45555) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mjJAI-0000l3-20 for emacs-orgmode@gnu.org; Sat, 06 Nov 2021 06:43:15 -0400 Received: from smtp.soverin.net (unknown [10.10.3.24]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by outbound.soverin.net (Postfix) with ESMTPS id E4C5960157; Sat, 6 Nov 2021 10:43:10 +0000 (UTC) Received: from smtp.soverin.net (smtp.soverin.net [159.69.232.138]) by soverin.net From: Noboru Ota To: Ihor Radchenko , emacs-orgmode@gnu.org Subject: Re: Introducing Org-transclusion In-Reply-To: <87v91c9fgu.fsf@localhost> References: <87fssispc2.fsf@nobiot.com> <87h7cysjf2.fsf@localhost> <87sfwgme9s.fsf@nobiot.com> <87v91c9fgu.fsf@localhost> Date: Sat, 06 Nov 2021 11:43:08 +0100 Message-ID: <87r1btk1j7.fsf@nobiot.com> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2a01:4f8:fff0:2d:8::215; envelope-from=me@nobiot.com; helo=outbound.soverin.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-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.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" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1636195461; 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; bh=RsvgYjGLypS4XR6mdGmR0KYMKI5w1r3NM25Gz1bAYSo=; b=Spbp5adJCj2hvEX3C7C0uHWljBksWYqjeihfAF/htVQeVrxrLjrYArwnpYbFGhMImVec5n dxZBqpsFeMwa95MXJbQk8jbt8dKEIrSj21h8cMbqt0IXSgSuVrs7Szs4+pBj98cHP41R4Z sDzIKA8A3ruVDIqiBeQpOCkMQSskq0HiZkUa6bZdPgTdVn1SJqo2mPzdjUPMXmWx1llUfO grLe9scwt5+IsaQDh8F1ImXA8zkkxjhJxPbGiib1ISDlJyJm8j7Rax+syp54TQ1siR+s+D TyZ17OuLFMavRptOyHU/8596pR3aIwV+ajI+lU4r2W7L73epz/XCMUITd//LIw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1636195461; a=rsa-sha256; cv=none; b=p9sHrbvisfFE09JDtOvFJryzflrYp4EOo4VFYnP/RM6HwIAFwaZlWuBq14N/cXHPrLehG1 jTu1MrmikPKMhmhsCvAR7upAJmBYD1G8WTO6dUcqsXlDpFaZAj0/9BThuD1rcWbDQmtdig C6Zftflo8lgsXOKJycCyADw3eYChPrZ8YoSVkZvKPwDuYX6OgSw3AMA0n9JwEl8YsUjFQ+ XZ8U2t6gbaWyPMUxaLFXcjmrOfQTouwPUJwDHEHZ1UDbesp8HR8aKGUklV49AyX804TouB 3EQs1tdC22VLiW3eE3etX18s/mxNuMg8BaUFdQnvrrxa+NGtvDVTsMvFTr0pJg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=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.42 Authentication-Results: aspmx1.migadu.com; dkim=none; 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: 5093686C7 X-Spam-Score: -2.42 X-Migadu-Scanner: scn0.migadu.com X-TUID: H3+BzpOV9xuO Ihor Radchenko writes: > I noticed that you are using overlays in text-clone. It may potentially > cause slowdown in large Org buffers. Of course, it does not mean that > org-transclusion should not be accepted. Just something that may be > optimised. Karl Voit (GitHub user name, novoid) gave me a comment in a similar vein regarding potential performance issues as follows: > As far as I understood: when you do have many overlays in deeply nested headings that are collapsed and you scroll over the lines with the collapsed headings, Emacs needs to handle those overlays and therefore is not able to perform a simple line change without issues. Source: https://github.com/nobiot/org-transclusion/issues/42#issuecomment-739570395 I personally have never come across such performance issue. Are you aware of some good test file or something to let other people reproduce it? For now, I am inclined to keeping the use of overlays as is. It's partially because of my psychological inertia and partially because text-clone makes uses of overlay's properties: - "Evaporate" property to take care of when to finish text-clone - Yanking does not copy overlay properties to avoid accidental cloning If performance issues become more prevalent and it's something I can address within my skill set, I will be happy to review the use of overlays, of course.