From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id cNmWLjdsPGBQAQAA0tVLHw (envelope-from ) for ; Mon, 01 Mar 2021 04:23:19 +0000 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id OMyPKjdsPGCZOQAA1q6Kng (envelope-from ) for ; Mon, 01 Mar 2021 04:23:19 +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 DF95221495 for ; Mon, 1 Mar 2021 05:23:18 +0100 (CET) Received: from localhost ([::1]:38392 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lGa5U-00018q-8S for larch@yhetil.org; Sun, 28 Feb 2021 23:23:16 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:57690) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lGa56-00018c-AZ for emacs-orgmode@gnu.org; Sun, 28 Feb 2021 23:22:52 -0500 Received: from mail-lj1-x231.google.com ([2a00:1450:4864:20::231]:42774) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lGa54-0003je-Kr for emacs-orgmode@gnu.org; Sun, 28 Feb 2021 23:22:51 -0500 Received: by mail-lj1-x231.google.com with SMTP id k12so8809360ljg.9 for ; Sun, 28 Feb 2021 20:22:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to:cc; bh=/aqFVZKRmCPDGt5jw+pW1D9Vo4sV5TuhVwlmp9YpEks=; b=H4g+A6Uvi2tF2/fPHwAXvNFvhhRkdlL7VoGFjSjFM724s8Xebwlr+wDxp/RRKRU/Wc i7Ru2g+mufJkAsl2yxS1kC5Wr0n2z65ihHIfw0MIeYwmKG7Oh623oUqTzuHX5B5aYcnW adaIEDczGROABEQUsuchcElFqZv4B1dvFgZB6p6gXsE9ami2qV8V7KDA/RBE6VhC6Nls QeBt4ZXxc+ZEZdMleM4j/UCpRXzG0megZl74O869iHy82/qhcjzyq9muNed4pKpMLShS zZ2WWktQh5V4za/Y/ULW5sAMyMKdJYPV7asUvr2vVTcEM5B4jSTeUE6fRPjjF5/HIUNI 2a4Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=/aqFVZKRmCPDGt5jw+pW1D9Vo4sV5TuhVwlmp9YpEks=; b=Pb0/bBpODJShhdvYaxxSLHx63UD7oXK4R4F+Jd5FTl7yq4UGXViR8GK5KrtbbIWcdc awkmiRGr1U+VmdC7byC/xXOyznSvwnuX1EflOyKBGzUAJF3hLwqpcRB2jgKObCnyPMe9 Tz6tQJk7sPK8FGVOoG6e7+7MN26Moe25aktnSM21jEzccyGWsPT/iHOGu+C9prU29CX2 3Dzdf4qr+aXTjfwzvM3EijGtM5ck9ifuQPXXLyJkqX4n/tZUyzNYWtkAWEpfZk7xF8Wl MLNtuO8nbcVH5oexNxwzfxJFqy7ezaGRq6oURs1kltj2vkTNKhTskWV2UZ39Nd4g3SRB bh6Q== X-Gm-Message-State: AOAM532k5f5ZxPJPeuq318736OzcNd5HkSYTipsY/co3begNuvHlojZT 7DoiDZBtxhjuZHM36Htgi1i48ME1BM3ZvSUo5jA= X-Google-Smtp-Source: ABdhPJwXE10MKStHXHN0UA8VPrTohxtENpVEo+8gQ20XDFrkoPM450/QpMuWhXbwKoPbXa5AQJQvhOXpI3GFW6UuPCE= X-Received: by 2002:a2e:9148:: with SMTP id q8mr4690536ljg.356.1614572568092; Sun, 28 Feb 2021 20:22:48 -0800 (PST) MIME-Version: 1.0 Received: by 2002:ab3:7842:0:0:0:0:0 with HTTP; Sun, 28 Feb 2021 20:22:47 -0800 (PST) From: Samuel Wales Date: Sun, 28 Feb 2021 21:22:47 -0700 Message-ID: Subject: archiving speed [was Re: Tips on maintaining history in Org Mode] To: Ihor Radchenko Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=2a00:1450:4864:20::231; envelope-from=samologist@gmail.com; helo=mail-lj1-x231.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=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.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, David Masterson 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=1614572599; 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:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=/aqFVZKRmCPDGt5jw+pW1D9Vo4sV5TuhVwlmp9YpEks=; b=Goji1R1WYTHsK2r77Cbtss7sIzGvcMfNfmm7n0uTuKzqSJBhLhMkndHCFRaCMMhEWRtdJH qFz2nIjwhHfNaZXc9nSv7ZrS2AA30eBtCs9vI/NXVH0czO1HK1UuxlhEPFUUuIGYNTAHui yCtV0/lnBdGO683SxdPHmlvAkLJ9X/Bh8hOOjb/UdPp6Iqaav/EjBBaWRvj20kntxUCVru 0QSAWePGlJWjCnSroFkhHn90oVBml1+undECbsEelGMORdukerRPNtyLyLuTHr5zmqvNve UP9ID5iY4KqovjV/Uzl6M7bk+ZN/XAw8qZic53DWlYqy31JO7z6CYRvSuFeCfw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1614572599; a=rsa-sha256; cv=none; b=Q/XmoZUO5gkXTKa0Cr3DtXmz4BEJNd3XSgeAIKllCV1mvxWBtS+Db73HwkTlLs58syZxb4 WEsgYVCl5LGwCAGrdbTmCxPF+IkMcB0YHxVLJjwNpQ06f3cDPSufIhLhVjfY6nR2jpeyUc TbW54Muhqz41CprFwT2VBfteu61z4IFsWMblV+aFIDd16mM5+wqt/pbzibfAHeNrPTMf8d MJabz+kbUrbC+veEsyYHnOwZLpOgLBYaZrTnd+S2f2+iW5f0lMWmPIlg9IUJoadhogWihV HPiBlRK58BOPWGJt0A+wLoduGTeThJjgMBTl6un9atdNpfi6GeBkUw/z8wcz7Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20161025 header.b=H4g+A6Uv; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=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: -1.26 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20161025 header.b=H4g+A6Uv; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=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: DF95221495 X-Spam-Score: -1.26 X-Migadu-Scanner: scn1.migadu.com X-TUID: 6cNE43OQYCKZ thank you for your detaild reply. more below. On 2/28/21, Ihor Radchenko wrote: > details why). So, many org commands tend to lag on large archives. that makes sense. but why would appending to an archive as the result of bulk archiving lag? if the problem is large archive files, which i'd bet is the case for a lot of users and not just me, then could org in principle be changed so that all it does is append? thus not lag? like, build the entry in a temporary buffer? as i see it, having more than one archive file per org file is good for speed, but doesn't work in existing org, because iirc e.g. v A in the agenda goes org agenda file -> corresponding archive file and will miss the archive files that do not have a corresponding org file with exactly the same basename sans extension. i'd be ok with released org either allowing hte user to make year-based archives by having all of org recognize them, or my just append thing above. maybe i am missing something. > The lags can be solved in several ways: > 1. Reduce the archive file size this implies to me e.g. year-based archives, which would fail the v A test iiuc. thus needed extra code. > 2. Use optimised folding mechanism [1] (this will speed up org-mode in > general as well) i look forward to this filtering down to maint. :] [i used to follow master but too much for me now for health reasons.] > 3. (untested) Put #+STARTUP: showeverything at the beginning of the > archives, so that nothing is going to be folded good idea. my included-by-agenda archive files do seem to be in showeveryting mode already for some reason. but perhaps not when bulk archiving. would it be a silly idea for an fr that org make this an option for bulk archiving? hmm or for archive files in general? >> i will keep in mind disabling font lock in archive files. any >> suggested code for that? > > Note that it will mostly affect find-file performance. To disable if so, then i figure it's a one-time thing per file so no big deal. but thanks for hte font lock stuff i didnt' know about. > Sorry, the config is actually not yet formatted for public use. You can > search for the code block containing "defun org-archive--compute-location". firefox find does not seem to find it. > > You will need that code block and the following code block. > > [1] https://github.com/yantar92/org > > Best, > Ihor > > -- The Kafka Pandemic Please learn what misopathy is. https://thekafkapandemic.blogspot.com/2013/10/why-some-diseases-are-wronged.html