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 qOXQLabFFWLBAAAAgWs5BA (envelope-from ) for ; Wed, 23 Feb 2022 06:27:02 +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 uCwxK6bFFWKLggEA9RJhRA (envelope-from ) for ; Wed, 23 Feb 2022 06:27:02 +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 4782B36658 for ; Wed, 23 Feb 2022 06:27:02 +0100 (CET) Received: from localhost ([::1]:35608 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nMkB3-0004Vp-GU for larch@yhetil.org; Wed, 23 Feb 2022 00:27:01 -0500 Received: from eggs.gnu.org ([209.51.188.92]:58424) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nMkAa-0004UU-Sy for emacs-orgmode@gnu.org; Wed, 23 Feb 2022 00:26:33 -0500 Received: from [2a00:1450:4864:20::132] (port=38630 helo=mail-lf1-x132.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nMkAY-0000Xn-Tg for emacs-orgmode@gnu.org; Wed, 23 Feb 2022 00:26:32 -0500 Received: by mail-lf1-x132.google.com with SMTP id w27so11325168lfa.5 for ; Tue, 22 Feb 2022 21:26:30 -0800 (PST) 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=SRmpnzwkRe28SSenVkRX32D39LH0xiL1pQO9nXhk+5E=; b=cyr6yoe+g6n6uDQvlPWhDLu4ZEaVPGMwKwwP381YsP9/wAQITAvayzv6WKnoM6n15b R1hOa8XWC5rwlRLxn+iNYyGu76p53jDWzP6tKELud2O34uY6MGO9gE4RBOMKrMV4etD8 Z4o5gcq/LLEFpaX3mJ1xs6NcKPJMbtSvAp+NKzG7vpCyjm6GvBpLs1ZVrl60jePKJZ2L e3Yr4dWu7LUrME2unMDeDMg5yYUQqg2rA/QMgdExOsBA/gxbJnPHVsp3dJlcMPCnbnLP APOWxd9uBOXlU2SN4NGrIhtby9Lpi6oW/jLzk/IaWCQGBJqLVqyXZ9EBUzv+FnQTNWz8 gh5Q== 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=SRmpnzwkRe28SSenVkRX32D39LH0xiL1pQO9nXhk+5E=; b=l4e0ksc4mKXnrdslDFdLxRZ7zIizy2WxQX7eNgmOEWV7b971Yx/Q9c8f7WzLFLfdgf SFWrkWNPzjbh2syQzGDXL79wUKW+A+PhmRFWa2CA3LEBkxfw96aL42hk6EfZArBVWGoL ma9zzzbxVBjFTI+nem3BLcYWQzOXm1FUvQWMN3poBBS+LMTQcpJxNQAJcnnBOiTRHeRA 7nNRpecXMDCANUuOhG0e0dUs5ggm29r7GOEclWYSt3UR1Da+2eX067DyErK1pZlSeNCg 1iq+CBQUrMpeLqhlFMB506tl0HxDVlABR5jT3g+aTPKsmoJu0xTQ3RmKvpf2vFZfsRsK VJqg== X-Gm-Message-State: AOAM532y68WOFOLZbl6hlC58Nsvg/4kHeaU0T6Dvsg3jWtXy/D02ZnyL Jhmp4oVCMAVfwfUjUHgr+NQ= X-Google-Smtp-Source: ABdhPJyJxTOTTzNpQ3SF6DvrtSU+p+F/Fq5RkpH3/x0SQJvEkY4D4n10Sgt5U1YDRsBD6JRjEcCeKw== X-Received: by 2002:a05:6512:287:b0:443:7f1d:e8ed with SMTP id j7-20020a056512028700b004437f1de8edmr19350462lfp.321.1645593989233; Tue, 22 Feb 2022 21:26:29 -0800 (PST) Received: from localhost ([141.105.67.194]) by smtp.gmail.com with ESMTPSA id x1sm1550915lfd.218.2022.02.22.21.26.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 22 Feb 2022 21:26:28 -0800 (PST) From: Ihor Radchenko To: Matt Price Subject: Re: profiling latency in large org-mode buffers (under both main & org-fold feature) In-Reply-To: References: Date: Wed, 23 Feb 2022 13:25:58 +0800 Message-ID: <87zgminogp.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:1450:4864:20::132 (failed) Received-SPF: pass client-ip=2a00:1450:4864:20::132; envelope-from=yantar92@gmail.com; helo=mail-lf1-x132.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: Org Mode 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=1645594022; 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=SRmpnzwkRe28SSenVkRX32D39LH0xiL1pQO9nXhk+5E=; b=rhCw8wGaGmBGqIT9kQIPKNbDOADeHtmFguLDKrMCbMLnm9mgSmWpcofMGZzpGBVp7/ckkc AmQ9pJtR3RuaXXMURo9a8iaRQ6z1PFwlPAoVDStetgxAeozmhJ0bidCZSzhjr1V3BlTylX dOM9Vx5oUm7r2Q4bnKm8jjYKFUVQj8z89bdPjxI70Aj6yxK2PMYcYnzcQgMx30vTzmWni7 spQc+AtOub7Id00uaWA9E1A9rxA+3os++14uGGydtmfTJBcuZyHBh9LzlRNJbMya3QqBLN IpGQNu24gnnLKfPEpk6OIwqASm4iEPL8BsIJhefmMnRdw6YL+ps87zN2j/At2A== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1645594022; a=rsa-sha256; cv=none; b=A4aIqwURjaHm/KymfewwKm07O9DnTNydM7oR2kq/gnR7uZQHdezmit/yEzhw1dv/zxb8Lu NqGS2NpKm8gF0eQKi150OVukXNfLDuESeaQmkYARYMyEQZydqGHjZN1fDkLyA7tz0jX/2f JWrZ466lFpbEQIQPKzCb0GdjCf8db6SNkT67Pjg2aJyrGfdrso/E1OMxdAQ5Zg9i8OkZVJ 4iBA/1yv/8oTx8QefUlyJlXIieFCouYA/EJTlGZPPziBaO4k0dXifY/pMMAQeF/U+wj8Un uz/jqdv/rbzbiFJ+tm/AusPnvS5KLaqkRtoi5IM02OHgXt3y2IEOywOKEUphZQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=cyr6yoe+; dmarc=fail reason="SPF not aligned (relaxed)" 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: -1.53 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=cyr6yoe+; dmarc=fail reason="SPF not aligned (relaxed)" 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: 4782B36658 X-Spam-Score: -1.53 X-Migadu-Scanner: scn1.migadu.com X-TUID: qhY4NjyKcjrN Matt Price writes: > Yes, it definitely seems to be related tofile size, which makes me think > that some kind of buffer parsing is the cause of the problem. Parsing would show up in the profiler report in such scenario. It is not the case though. The problem might be invisible text (it would cause redisplay become slow), but 15k lines is relatively small - it should not cause redisplay issues according to my experience. Just to be sure, I would try to check performance in a completely unfolded buffer. Best, Ihor