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 XCDRETWZNWLGeQEAgWs5BA (envelope-from ) for ; Sat, 19 Mar 2022 09:49:57 +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 sO1JDjWZNWKkagEA9RJhRA (envelope-from ) for ; Sat, 19 Mar 2022 09:49:57 +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 BFD9B9149 for ; Sat, 19 Mar 2022 09:49:56 +0100 (CET) Received: from localhost ([::1]:57186 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nVUmZ-0005ee-FB for larch@yhetil.org; Sat, 19 Mar 2022 04:49:55 -0400 Received: from eggs.gnu.org ([209.51.188.92]:53808) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nVUlY-0005eU-A5 for emacs-orgmode@gnu.org; Sat, 19 Mar 2022 04:48:52 -0400 Received: from [2607:f8b0:4864:20::633] (port=34576 helo=mail-pl1-x633.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nVUlV-00013Q-To for emacs-orgmode@gnu.org; Sat, 19 Mar 2022 04:48:51 -0400 Received: by mail-pl1-x633.google.com with SMTP id i11so8191453plr.1 for ; Sat, 19 Mar 2022 01:48:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version; bh=DcmLQU4H9ewSXTHkfviQt7KJn3RnnQbgmpphYJG+Ww4=; b=WPdstbhQZsqdOPQIasNYxaSNiPwp8Z2XoHXGE66FUXEoDfGoFEnMcN48RFqB0bIdHv WcOIhFwHdAVUIKAAxFJXksL7oZWjipnMYdgjkSIxo05HZd0LDx/mzZptsbKyOupyOfPp Nnh6gYAFtSrpihLNj9l4TE4x19lB8ZXXe1cGJ1v/HpEMWGRmXCmF96tRzWq67buUmZvT npEy7a2g7ue0pIz/Y1ge+nuPOWQErg8JnOjuc+JsQLBVzDZGThciRg6k9oKulA6BT/Z4 WYq79t6dhuxqNnwXBmhPgMFjkbcMZKu2xKidBcHeMn5e+3dLSjITFhzH0w+f9XkjmliL lubw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version; bh=DcmLQU4H9ewSXTHkfviQt7KJn3RnnQbgmpphYJG+Ww4=; b=Rr6sG9Rowv4F7HidMgwGIvTaahPGpuvIvN9gohLdyS7BI5WvwbtpmQUEPmeFNxIXOf 73gpxNMpjtRpRWt1tS4RsWM4w5i6VrS0XpEcPP0iga8W9ankIoe77IFHi5/q/RkDrjW5 ogDBcQH6WS1+XuCzimX9MPevwe0ls9bh2ZKv1URzXN6UY+Cf8UKH65TQFoIJoqIwatfX RaH2McLrQf000JsbWAskWl5qxsHeN8FIA5XzWHC14EpHeFFyEf9F0xzkI+l658ieu/QK k8ERz4ciZPjduIIXf7PhLTFvtyI2TAedfLELvln9XLn3/RxLipfQcTDwElCseOMlVfnn IC0g== X-Gm-Message-State: AOAM531bRp3cbmkMRn4yAMHL0xQ7tvIKDEYjjucyiiSyDFWyOs0Vwe2t m3JDS21zSLSovwM7lKJcN8E= X-Google-Smtp-Source: ABdhPJzFyV+c88GHPVzx2VODZVE29hIkkbKWrlxl7VHg/mcbmaiPRqd6u6GC1Ax0V1EOYft5RSUNTQ== X-Received: by 2002:a17:90b:789:b0:1bc:293c:1445 with SMTP id l9-20020a17090b078900b001bc293c1445mr25836699pjz.111.1647679728456; Sat, 19 Mar 2022 01:48:48 -0700 (PDT) Received: from localhost ([45.128.72.3]) by smtp.gmail.com with ESMTPSA id d4-20020aa78e44000000b004f6aaa184c9sm11235865pfr.71.2022.03.19.01.48.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 19 Mar 2022 01:48:47 -0700 (PDT) From: Ihor Radchenko To: Max Nikulin Subject: Re: profiling latency in large org-mode buffers (under both main & org-fold feature) In-Reply-To: References: <87fsobpism.fsf@localhost> <87r17to817.fsf@localhost> <87lexy2hrz.fsf@localhost> <87y21wkdwu.fsf@localhost> <87fso0xuaz.fsf@localhost> Date: Sat, 19 Mar 2022 16:49:16 +0800 Message-ID: <87ilsafhtf.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::633 (failed) Received-SPF: pass client-ip=2607:f8b0:4864:20::633; envelope-from=yantar92@gmail.com; helo=mail-pl1-x633.google.com X-Spam_score_int: -3 X-Spam_score: -0.4 X-Spam_bar: / X-Spam_report: (-0.4 / 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_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, PDS_HP_HELO_NORDNS=0.659, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, 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: , Cc: emacs-orgmode@gnu.org Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1647679797; 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=DcmLQU4H9ewSXTHkfviQt7KJn3RnnQbgmpphYJG+Ww4=; b=eHK31bbQSVosDGvxmsTVzulNxrqQlkmjAcCmacYvTKhnkk2yAc+djl3v30m1RaAWah4V2I l80rGW0ESfGXISmlTb+4bG9jZ/Q6no1FNRHzDX+BGAiGRy7umA/VdBTIBgTyDij3OJ9DdS k5oohjpDZh+qY4ZeleN9ZRvXj6Itlc8a0X3QCZL6kP94HxdKJ0fjvs6twPN7qWetSVjVjQ FPpTK3vmgjMfvKYWi+pP4M5gnh//ns0pLWmKiRfJP6s9Og3DC5UyWCk5DXA6lKfQ4ZM3fw eQ7LbzYJpT5+Kocn7/WEVZc3g3V6gLW6Yv8gTu3gcB9UdRiry9Kk0pK88OyGOQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1647679797; a=rsa-sha256; cv=none; b=PNqj9KsRF693NLybIpX6NhMDl68CSBFXgQGR2tsfaa/ji9ApYgxYHmNdF+hPZCSuVOP50M lL0LrzK27mdHJqrq2TkXVwf0kHvXwX/3y6Y5ZMdNCw4MuSDaot0z6DzB1Pdy/XIhgzqvYK jZPxWl6ZKNN6VQmk6eBUUfSc6UwRkPkCAZt0QpoFaYmwJUdycbHZeGncPRBfIDXcRkc0E3 Z3HrRBisn2z9pcGQUfb2coONzuY6iQJ5IAWX3jv1t7DDDpaPXBcH9YVU2YD7m3DhpqqkIf vsyqqnX6vL7SQwzVK8GNMN7tWCP4dUntMZZt8cykncvqYResTOfO8lFnAglZVA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=WPdstbhQ; 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" X-Migadu-Spam-Score: -3.64 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=WPdstbhQ; 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" X-Migadu-Queue-Id: BFD9B9149 X-Spam-Score: -3.64 X-Migadu-Scanner: scn1.migadu.com X-TUID: oxMcq/A0O5+W Max Nikulin writes: > It is up to you to choose at which level your prefer to optimize the > code. And it is only my opinion (I do not insist) that benefits from > changes in low level code might be much more significant. I like the > idea of markers, but their current implementation is a source of pain. > >> (note that Nicolas did not use >> markers to store boundaries of org elements). > > E.g. export-related code certainly does need markers. You experienced > enough problems with attempts to properly invalidate cache when lower > level is not supposed to provide appropriate facilities. I understand your argument. However, I feel discouraged to contribute to Emacs devel because, most of Org users will not benefit from such contribution for a long time. Not until next several major versions of Emacs will be released. So, I currently prefer to contribute some backwards-compatible high-level code and leave Emacs core for future. Best, Ihor