From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id yHq4CSFbFmK+QwEAgWs5BA (envelope-from ) for ; Wed, 23 Feb 2022 17:04:49 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id IFs8ByFbFmIEQAAA9RJhRA (envelope-from ) for ; Wed, 23 Feb 2022 17:04:49 +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 8C21F287AB for ; Wed, 23 Feb 2022 17:04:48 +0100 (CET) Received: from localhost ([::1]:60664 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nMu8F-0003Fc-8L for larch@yhetil.org; Wed, 23 Feb 2022 11:04:47 -0500 Received: from eggs.gnu.org ([209.51.188.92]:46314) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nMu7Y-000383-3e for emacs-orgmode@gnu.org; Wed, 23 Feb 2022 11:04:04 -0500 Received: from ciao.gmane.io ([116.202.254.214]:56248) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nMu7O-00041J-Er for emacs-orgmode@gnu.org; Wed, 23 Feb 2022 11:04:03 -0500 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1nMu7K-0005j4-FJ for emacs-orgmode@gnu.org; Wed, 23 Feb 2022 17:03:50 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: emacs-orgmode@gnu.org From: Max Nikulin Subject: Re: profiling latency in large org-mode buffers (under both main & org-fold feature) Date: Wed, 23 Feb 2022 23:03:41 +0700 Message-ID: References: <87fsobpism.fsf@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Content-Language: en-US In-Reply-To: <87fsobpism.fsf@localhost> Received-SPF: pass client-ip=116.202.254.214; envelope-from=geo-emacs-orgmode@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: 28 X-Spam_score: 2.8 X-Spam_bar: ++ X-Spam_report: (2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_ADSP_CUSTOM_MED=0.001, FORGED_GMAIL_RCVD=1, FORGED_MUA_MOZILLA=2.309, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, NICE_REPLY_A=-0.001, NML_ADSP_CUSTOM_MED=0.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-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" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1645632288; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=NDhmx9lpE8LYVhFVei92E+g76Orol7ZHUAB+YQNQkKY=; b=XmHtdMabw7N4k/INLeiHRoyqxkXEVeQjoUlFfIsEiG71WGBWzRqm/5dH6eHf4gCPF3g0l5 sxIQ3FwxeROhTwKrZ4Fq1Ywp1WvJ/wBgZqkyMjxlBIQ0eOgbEhRljuU18qvinxNz6LKlZx /EwY6MFCuIHKYHzABbxcw+6EDi0wqQTImDqkFOEwGQe7MChudhIrVqpDK+j4Xooqa8DZVK RQv38DdZwpSDqbKmzIVkDhkstlSJGIN95uRWYJCSJFiXCxoSyD4lK1KUiI6s9JqlR0JLV8 EOX6ZxZK8wGuBnlKoS1XiV4nrOzSDcm8mUCTLOjG4uVPe07/zGMR3BiJn77cKg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1645632288; a=rsa-sha256; cv=none; b=DchM0mVu244GXbWxOqjuElr9HidUyhxrZChkL9423FGMiMh48rV9Pu7nsHtxJr3r5SHZCL z6oJMU+q4b85+LzuQO9M46M2QF2/V9UaUZsRhSZcs01kEhvhG3/qbV5YwUg4p5s0viCWhJ VF1Lfk03gAWKcBgyugJ07GarGVJhYQnsA3Ufdb7L9T92h9Sd+RrStqZ8OshvPdgDYibLxi U+OhD2+koIJv5N0Fdx9l/yfaZUiPbb/tyOPr22k9F/IuwFWObnX0sBEOV+4dgF2eipwVvb Hl02uBDig5Bvz1T8miRajKBwkaYSAGp8HFiroYUBReV7WOKYzmXSihmhRkRFuw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=gmail.com (policy=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" X-Migadu-Spam-Score: -3.63 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=gmail.com (policy=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" X-Migadu-Queue-Id: 8C21F287AB X-Spam-Score: -3.63 X-Migadu-Scanner: scn0.migadu.com X-TUID: VhmquLrnCQU4 On 22/02/2022 12:33, Ihor Radchenko wrote: > > I am wondering if many people in the list experience latency issues. Ihor, it is unlikely the feedback that you would like to get concerning the following patch: Ihor Radchenko. [PATCH 01/35] Add org-fold-core: new folding engine. Sat, 29 Jan 2022 19:37:53 +0800. https://list.orgmode.org/74cd7fc06a4540b1d63d1e7f9f2542f83e1eaaae.1643454545.git.yantar92@gmail.com but my question may be more appropriate in this thread. I noticed the following: > +;; the same purpose. Overlays are implemented with O(n) complexity in > +;; Emacs (as for 2021-03-11). It means that any attempt to move > +;; through hidden text in a file with many invisible overlays will > +;; require time scaling with the number of folded regions (the problem > +;; Overlays note of the manual warns about). For curious, historical > +;; reasons why overlays are not efficient can be found in > +;; https://www.jwz.org/doc/lemacs.html. The linked document consists of a lot of messages. Could you, please, provide more specific location within the rather long page?