From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id 2FSGEOrZtl7TbgAA0tVLHw (envelope-from ) for ; Sat, 09 May 2020 16:27:22 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id eJnfGPfZtl7MRgAAbx9fmQ (envelope-from ) for ; Sat, 09 May 2020 16:27:35 +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 263A6940D32 for ; Sat, 9 May 2020 16:27:33 +0000 (UTC) Received: from localhost ([::1]:45880 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jXSK5-0004ku-Fw for larch@yhetil.org; Sat, 09 May 2020 12:27:33 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53134) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jXSJi-0004ko-V7 for emacs-orgmode@gnu.org; Sat, 09 May 2020 12:27:10 -0400 Received: from mail-pg1-x52b.google.com ([2607:f8b0:4864:20::52b]:35596) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jXSJh-00085k-Gt for emacs-orgmode@gnu.org; Sat, 09 May 2020 12:27:10 -0400 Received: by mail-pg1-x52b.google.com with SMTP id t11so2379700pgg.2 for ; Sat, 09 May 2020 09:27:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version; bh=4LrTibk/g4Auu7u0IlpTUs6jafY6DUPh9KhOmgOkxTc=; b=gSEDgULUhlp50nFDqUJA/M2Gqqra6s7ZnW5EyrBixi6+LaFuO4Le7JZ60IhJ73Ff90 LZrA3MC+jfyHwx0WxwkWanvR+0SdnSH7vgQdpY2qURLtxMc6I7JTcirnzFs/R4bqVqdJ 2NL4P/j5SwdRA0F+dxG2dZQWY0HuvM94/Vo8XwivmWEUjveX9QsZ5xkt8hUvz7lF+rNg yB7IH/wIhpUejO7+FYTwD9+fblwcecOH/YJ/vLGOB7B441sEb6o8ZUBxvmbsCoSw11XV m3tudOfLuG94e2maZqX+DOrQoKCgISLugJ4OFTaH4Ky8RpzkiPv7XoaKeyCjyF8g4/Xb S5Hg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version; bh=4LrTibk/g4Auu7u0IlpTUs6jafY6DUPh9KhOmgOkxTc=; b=ti5a4Qe+9FmQFZwsXxRSFTxfDeNAmSG7M7e+8B/P6NyvOysK1bbo947PV9BDx8Vnur z5M/sK7nYnhdarMlLiYA2heoe67T59+BbiEunBnPpkh+fYmilrCwBLBqTX3j9dQQsOLo 7of5L1PMDkU/RvYKHch6eyoIU0mxENItL7VyI0v8OxacSt471lFhIwxRqAvNZGclp/g9 ehM9bFR2vjT3H0ovpIWHdkj3p6D09WYuiQfQr428MXU/GGFX2uCH28jeO4ehBaf01PPh bChaY1QcBLXFqHl/FPn/03d3NhOBPfOGlBwOOHmihzLyLW5lj/8Eu/4eL2bVROmyA7jk sMrg== X-Gm-Message-State: AGi0PuadQR0C7zU0P/IAxk2TzZY85KItv9Ucx9Gj9KodnXYttRxwJsut krLYcdgviXNj7dHv2XdbHyQRlRYqMp/ngA== X-Google-Smtp-Source: APiQypIjlXilIuU8pjRSmB10jhUpa74vuqQ4HM218syC16rhvRcUJ/UMIso42CRF5TETvNcmjPS/GA== X-Received: by 2002:a62:7f45:: with SMTP id a66mr968813pfd.125.1589041627949; Sat, 09 May 2020 09:27:07 -0700 (PDT) Received: from localhost ([210.3.160.222]) by smtp.gmail.com with ESMTPSA id 11sm2906420pgs.27.2020.05.09.09.27.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 09 May 2020 09:27:07 -0700 (PDT) From: Ihor Radchenko To: Nicolas Goaziou Subject: Re: [patch suggestion] Mitigating the poor Emacs performance on huge org files: Do not use overlays for PROPERTY and LOGBOOK drawers In-Reply-To: <877dxl5hwu.fsf@nicolasgoaziou.fr> References: <87h7x9e5jo.fsf@localhost> <875zdpia5i.fsf@nicolasgoaziou.fr> <87y2qi8c8w.fsf@localhost> <87r1vu5qmc.fsf@nicolasgoaziou.fr> <877dxl5hwu.fsf@nicolasgoaziou.fr> Date: Sun, 10 May 2020 00:22:46 +0800 Message-ID: <87ftc9jcx5.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::52b; envelope-from=yantar92@gmail.com; helo=mail-pg1-x52b.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 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, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN 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-Scanner: scn0 X-Spam-Score: -1.21 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=gSEDgULU; dmarc=pass (policy=none) header.from=gmail.com; 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-Scan-Result: default: False [-1.21 / 13.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; GENERIC_REPUTATION(0.00)[-0.5401700486176]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:209.51.188.0/24:c]; FREEMAIL_FROM(0.00)[gmail.com]; DWL_DNSWL_FAIL(0.00)[209.51.188.17:server fail,gmail.com:server fail]; IP_REPUTATION_HAM(0.00)[asn: 22989(0.09), country: US(-0.00), ip: 209.51.188.17(-0.54)]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; MX_GOOD(-0.50)[cached: eggs.gnu.org]; MAILLIST(-0.20)[mailman]; FORGED_RECIPIENTS_MAILLIST(0.00)[]; RCVD_IN_DNSWL_FAIL(0.00)[209.51.188.17:server fail]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:22989, ipnet:209.51.188.0/24, country:US]; TAGGED_FROM(0.00)[larch=yhetil.org]; FROM_NEQ_ENVFROM(0.00)[yantar92@gmail.com,emacs-orgmode-bounces@gnu.org]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; RCVD_COUNT_FIVE(0.00)[6]; FROM_HAS_DN(0.00)[]; URIBL_BLOCKED(0.00)[sutd.edu.sg:email,nicolasgoaziou.fr:email]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[emacs-orgmode@gnu.org]; HAS_LIST_UNSUB(-0.01)[]; RWL_MAILSPIKE_POSSIBLE(0.00)[209.51.188.17:from]; MID_RHS_NOT_FQDN(0.50)[]; FORGED_SENDER_MAILLIST(0.00)[] X-TUID: 5zjuTwBBH16f > As a follow-up, I switched property drawers (and only those) back to > using `outline' invisible spec in master branch. Hopefully, navigating > in large folded files should be faster. Just tested the master branch. Three observations on large org file: 1. Next/previous line on folder buffer is still terribly slow 2. Unfolding speed does not seem to be affected by the last commits - it is still much slower than text property version. There might be some improvement if I run Emacs for longer time though (Emacs generally becomes slower over time). 3. on a headline with several levels of subheadings moves the cursor to the end of subtree, which did not happen in the past. Best, Ihor Nicolas Goaziou writes: > Nicolas Goaziou writes: > >> I wonder how it compares to drawers using the same invisible spec as >> headlines, as it was the case before. Could you give it a try? >> >> I think hiding all property drawers right after opening a subtree is >> fast enough. > > As a follow-up, I switched property drawers (and only those) back to > using `outline' invisible spec in master branch. Hopefully, navigating > in large folded files should be faster. > > Of course, this doesn't prevent us to continue exploring > text-properties. In particular, the problem is still open for regular > drawers (e.g., LOGBOOK). -- Ihor Radchenko, PhD, Center for Advancing Materials Performance from the Nanoscale (CAMP-nano) State Key Laboratory for Mechanical Behavior of Materials, Xi'an Jiaotong University, Xi'an, China Email: yantar92@gmail.com, ihor_radchenko@alumni.sutd.edu.sg