From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id GP37EfNNFGEJwAAAgWs5BA (envelope-from ) for ; Thu, 12 Aug 2021 00:23:47 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id 4GuNDfNNFGGwMAAAB5/wlQ (envelope-from ) for ; Wed, 11 Aug 2021 22:23:47 +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 6AEEC272E4 for ; Thu, 12 Aug 2021 00:23:46 +0200 (CEST) Received: from localhost ([::1]:39536 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mDwdV-0007Pm-Fj for larch@yhetil.org; Wed, 11 Aug 2021 18:23:45 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58288) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mDwdA-0007Pe-7R for emacs-orgmode@gnu.org; Wed, 11 Aug 2021 18:23:24 -0400 Received: from mail-lf1-x131.google.com ([2a00:1450:4864:20::131]:37514) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mDwd5-0008UF-PM for emacs-orgmode@gnu.org; Wed, 11 Aug 2021 18:23:24 -0400 Received: by mail-lf1-x131.google.com with SMTP id g30so9133430lfv.4 for ; Wed, 11 Aug 2021 15:23:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=QikGH9ZcCoKR08OHqladenMYCN6xsgy0nysUw0MTq2o=; b=kxpmuCJcFyBBRoJKcu8EFVJ2QpV6YDd3oEqN00s6ahx1jJL3sY0vTqRMopvmBY4w19 Xy1Rq1z7dx2zarcPgAjBbNktasFCNNjyKfxFTOlQFq089PXfn1JQvArljPJIoPMfy8B7 1kKkTZmWvofnW0RLKtgs2eJ1yB59KUppj2WJ2EGeAe8vV/Icy7PF4w7z5OtCDrrEqZLZ oZcYyEUoonE24Yh8mCJEqyVBv6MOeI0ikBTqVRKDe78LwRL7p7KrhjurYoVPe0eouUgn RC9DEh3NjHi40KtDEwPAtNztDsW05B83kZ3+QFLcVsBW6idIriJtJFzquXwN/rkyUNA+ y14Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=QikGH9ZcCoKR08OHqladenMYCN6xsgy0nysUw0MTq2o=; b=aLMY7Qw6Qvz6cjKZDTD6WNUftJWPsbJloBGpLUics5N8b6cShCQp3KYOZlV0YGrjMY 5GLLxhgdvSV/DfMPUSe8JT4PMcr877y3yW7IN++t/g8yyPi5Zq8g/hZwVXnY1UVfIo0x IEjOivJyVs9n6itz0ItCOcTwcetytGCQp1IFet0ZvGMZA8qc7gM3adOGGUTSvRHP1Kot Xj68k0zP1vl+LqPbdRnwhhvich+gqzofxSbZB9cATxMzZHPlQFL/zA37VHf2oyvBMfcU JbXzCVSraZQ4YjRcm34ZLIOf2/MKQdCtitMBhg7ho6szfcEDc70rCJVlj8UK/VxjLO3z ilXw== X-Gm-Message-State: AOAM5323qai17fDzdsy/i2T3LVrkRuKDceQBIO4qRvhFs3DORGOFqIph YRhJshwtPWVakDOx7jBwrVoMUN3VlrA1W6agbxU= X-Google-Smtp-Source: ABdhPJyV+sVCCS+mbDZjl+guVOhL8fp2WYe6l6582s+4j0UHF9wj87O9y0MvMaHP/sBWC4iNwcZgHODXCDprgZXcArg= X-Received: by 2002:a19:dc5e:: with SMTP id f30mr277978lfj.318.1628720597058; Wed, 11 Aug 2021 15:23:17 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:ab3:428e:0:0:0:0:0 with HTTP; Wed, 11 Aug 2021 15:23:16 -0700 (PDT) In-Reply-To: <87tujw8orc.fsf@localhost> References: <87wnos8vqi.fsf@localhost> <87tujw8orc.fsf@localhost> From: Samuel Wales Date: Wed, 11 Aug 2021 15:23:16 -0700 Message-ID: Subject: Re: 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::131; envelope-from=samologist@gmail.com; helo=mail-lf1-x131.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=1628720627; 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=QikGH9ZcCoKR08OHqladenMYCN6xsgy0nysUw0MTq2o=; b=aiBhFAv0+zpRteIbPClM6BOz4LNPMQ1eSkiz75TU8O9dkgwRiGbmFIn9l4BOSpPu8PJhqy fKL+dSvxKy8a82EaFw2mMzNsUZ621YWB8nY+ITszN6W7e3LcdGfv5QshJhVkkrZfL+g1tc Jb6XPVIKZwY2c/hBih/4wdrsjrbyHLZgdao6M7W8c8ReMCBfQLXg8/MoTjBFl3Pa///qiT wr9nyLJ8+lMLzjiXHlEoPcEJd9O6K7kV32bBS8n7LJ3mJzUwnfn2ZagRe/N5CfzpVTRTru OdyIRPTLBbZx06mtqjAOaP0MHbdP7rv5Q8AOD8++H/KGAlmVTElSazdj4FLZVg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1628720627; a=rsa-sha256; cv=none; b=aa+Nzf/75uYTNExNHyyUh6hBdMR8LsrEzAdkSTIQiSRHtOMqKYh+rrH2qRSdqiJtoPsng6 IJ74pd6vfIHAkdUZS5uVrwwXATXtAvy2uxaVs1bBv0ShAUvKkyYLFORoPODMSeDg9wmusn s2PDB2b7pNE0wqO8c1d3g8hRN5AXELwOS5t5ntebLoR+kTL1l4FBvAvL4UmmyOt1TN+Ax0 Wn7cbOB9RdItD8n8WvG3rGt4Wset08ydXA/bryU4INWrIC5o9zbO7VmrbL9wJNwK4VWDg2 RjbV4dl62/wqtD2dAdKxwer3F96izrheYvwKY1UF0Z4wSJgBhInh7w31Yu3kZQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20161025 header.b=kxpmuCJc; 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.31 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20161025 header.b=kxpmuCJc; 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: 6AEEC272E4 X-Spam-Score: -1.31 X-Migadu-Scanner: scn1.migadu.com X-TUID: VY8w0OMr4tWx thanks for the clarification. are you saying that, for every archived entry, it calculates teh category property, using the original org file, in order to add a category property to just one archived entry? that would certainly slow down more and more, but it sends me back to my question about whether append to file would work. i.e. build the single entry in a temporary buffer then write that region to a file on disk. On 8/10/21, Ihor Radchenko wrote: > Samuel Wales writes: > >> i should clarify. bulk archiving slows down even with /nonexistent/ >> (have not tried empty) archives. as part of normal and expected >> operation, bulk creates the archive for the first entry, and then >> subsequent entries are added. those get slower and slower. > > That's what I suspected. I also see this and my suggestion helped > archiving speed in my case. > >> i use (olpath category itags). i will try (file time) when i can, if >> that still applies. my brain needs to be more operational. > > When you use category, every time you modify the original file (not the > archive!), Org mode re-calculates *all* the categories in the original > Org file. It happens for every single archived heading. If your original > Org file is large, re-calculations make things extremely slow. > > Best, > Ihor > -- The Kafka Pandemic Please learn what misopathy is. https://thekafkapandemic.blogspot.com/2013/10/why-some-diseases-are-wronged.html