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 ms0.migadu.com with LMTPS id wDY9Kyq2FGHMeQEAgWs5BA (envelope-from ) for ; Thu, 12 Aug 2021 07:48:26 +0200 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 /V35Jiq2FGGPDAAA1q6Kng (envelope-from ) for ; Thu, 12 Aug 2021 05:48:26 +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 E6FB1FB35 for ; Thu, 12 Aug 2021 07:48:25 +0200 (CEST) Received: from localhost ([::1]:35650 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mE3Zo-0000ml-84 for larch@yhetil.org; Thu, 12 Aug 2021 01:48:24 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59806) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mE3ZB-0000md-Rm for emacs-orgmode@gnu.org; Thu, 12 Aug 2021 01:47:46 -0400 Received: from mail-lf1-x132.google.com ([2a00:1450:4864:20::132]:45626) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mE3ZA-0006xL-7y for emacs-orgmode@gnu.org; Thu, 12 Aug 2021 01:47:45 -0400 Received: by mail-lf1-x132.google.com with SMTP id g13so11180603lfj.12 for ; Wed, 11 Aug 2021 22:47:43 -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=3UfY71knpOZwzm1MI+JGimB0wwYgcwFLYP8HZrNSUEA=; b=q+bZo0B2zZZ01E8snTqi2qsn97XVNS2Jst1mZVgHNptE9P4B/n/dQTc0CfP4eUyRGv pX6DNrW3k/j+2BCbER+hVajzZbZ0GkapCXbpGJWEjZQBN2mWSyDHG3hlUy38VKHDa1s4 8F9RAGv84F3C/4ToF8GfGIqHZ2NONOGClK4ADaanyEU+Y+yy4ggsYhv0on+wPimNcY1Q BHGxT8wagWSVBPGHjDzkNUaXBh8jZJcNxl7Jw+8CLGmHXK5in86bu9vczo5jWuAgowbI T5XA6PmHKlgmZsOhdiSfyRXsj5FZDnVDNRLj44hjY0osA2jXMHALBR6M1IBg/gZVP/Tz 2ttA== 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=3UfY71knpOZwzm1MI+JGimB0wwYgcwFLYP8HZrNSUEA=; b=tp4JufXQiQ/RBf8DFv//SBhFK5aA6AORmJ2Ml8UzJsBKMe55M4jWtmVt+jMFtq2XRb MszPbkLNUYVDFDHiF87IW46m0+r9yvmAYGrZZDYERG1VTJYsUZmrY6bFI9C9oJlKuJFG VIvqX8fF9ySvz8XWR7TPv+d4mUAQPVNF4j1Q29y1tSqtI/o8J+qKjfTHiHd5/3BwVYlM 0LTTFv79AviWihTGOwtkQ6DGroC0nDNb17d6OPKf/Opu2B462fS5HjTzfgprDWiHTDu8 MAixeSzXEo+0x91/fYsZPemCxGsyELqpGZYjLknkcByrf5pOKrvCmV7boVrbjRoCah/4 NIxA== X-Gm-Message-State: AOAM532pbNwTyMhuyosZbtA0Mpsc1i4oJrF0z3ChxzamPiAigF0iO0cJ EefuoOWQGRQfRkDDlFqmWLRCVSvJkSLiZtOqs3U= X-Google-Smtp-Source: ABdhPJwRQQWTvEQqtbXi4qc9N4Hnc3++cxQ9aptP/3PTD7nN9Cl58Khd0HrPDFlKOl4cMv948Co2jZQ2o2Lp91rep8Q= X-Received: by 2002:a05:6512:2153:: with SMTP id s19mr1387829lfr.140.1628747260713; Wed, 11 Aug 2021 22:47:40 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:ab3:428e:0:0:0:0:0 with HTTP; Wed, 11 Aug 2021 22:47:40 -0700 (PDT) In-Reply-To: <874kbvpl0q.fsf@localhost> References: <87wnos8vqi.fsf@localhost> <87tujw8orc.fsf@localhost> <874kbvpl0q.fsf@localhost> From: Samuel Wales Date: Wed, 11 Aug 2021 22:47:40 -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::132; envelope-from=samologist@gmail.com; helo=mail-lf1-x132.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=1628747306; 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=3UfY71knpOZwzm1MI+JGimB0wwYgcwFLYP8HZrNSUEA=; b=We//SaAGT4clxFbhpIY+C0MVTygdfwxArLsRNEkD3/ZyipCRjKkhYT5caeQR8itn7bfYB7 vJNHmj3AkUlSp4sKdSCc+88yqJn0cjNUhRmW7NuC8pA9BidO8PRVgfHy9nFLKIfJ2e2xXQ mkwV+r63dBcznulKzj90UXwJPpEOxfS/6Fg0a6d6W8V1Du8AlXQ05EHFtctXRAabze/q12 QOWu9Fz7DC9q4fF3nnCgkruUm0IEYhWKVsffsawHyfPJ9tsBnz8hSzceI5h6er229xh9er ZHHsjRVGzR441mpBAb3GpWo92BejOeck/sHHS7kUVZQT8A98onnlhVnz9hhdrw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1628747306; a=rsa-sha256; cv=none; b=VaLcj8pzbzV6ONTVRUl8gQOuZdyGZI9asHA/blCmAhPOT7R6LpgC7fJE/1OPVh3+jsqRjJ /V09Na4kPnPi8ZO+Fa8bkthPbifJmrV4s/9i9xWmok4dR5sYpRnlOc8nKfMSXN4KeJCd6b jHNE+8Lc/l0/SkeelG4IZSVXa5Awfe0SPuPqhZwrp905u5eIu5MuOsoFp92okaPvdyADF4 nO+YTwXyOcyGbhz/lpb1wLQaBx5r16DapUnbfcl2QkIgpljGQmlfvVQlw5fgN4HXyfjfr3 DWEYLS+2ftLCovxOUWmh0KPyAU/O4y4xWtwyxtmAGc1e1o9osQIaBcJ7rXkHdw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20161025 header.b=q+bZo0B2; 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=q+bZo0B2; 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: E6FB1FB35 X-Spam-Score: -1.31 X-Migadu-Scanner: scn1.migadu.com X-TUID: Fn/m9bD8jI7J thank you. i will give up on archiving categories if needed to make archiving be practical. will ahfe to try it as soon as i can. On 8/11/21, Ihor Radchenko wrote: > Samuel Wales writes: > >> 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? > > Nope. It does not just calculate category for the archived entry, but > re-calculates all the category properties in the original Org file > (updating category cache). > >> 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. > > Appending can indeed work if your archive location is at the end of the > file. However, it is not necessary the performance bottleneck. Certainly > not when the archive file is small. > > Best, > Ihor > -- The Kafka Pandemic Please learn what misopathy is. https://thekafkapandemic.blogspot.com/2013/10/why-some-diseases-are-wronged.html