From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id WJg5NV9qFGG7AAEAgWs5BA (envelope-from ) for ; Thu, 12 Aug 2021 02:25:03 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id WCfSMF9qFGGuGgAA1q6Kng (envelope-from ) for ; Thu, 12 Aug 2021 00:25:03 +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 261FC1FA5F for ; Thu, 12 Aug 2021 02:25:03 +0200 (CEST) Received: from localhost ([::1]:35032 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mDyWr-0003v6-BX for larch@yhetil.org; Wed, 11 Aug 2021 20:25:01 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51500) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mDyWU-0003tT-Lj for emacs-orgmode@gnu.org; Wed, 11 Aug 2021 20:24:38 -0400 Received: from mail-lf1-x12e.google.com ([2a00:1450:4864:20::12e]:33310) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mDyWS-00071i-VO for emacs-orgmode@gnu.org; Wed, 11 Aug 2021 20:24:38 -0400 Received: by mail-lf1-x12e.google.com with SMTP id p38so9859902lfa.0 for ; Wed, 11 Aug 2021 17:24:36 -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=srn3Uu2vDG2aRdVI3EqfE+6Vxmh+PUEDahJUuFfVqDc=; b=mtmScHmxbrEZr82KZTsKIdudISrvV3cWrxDnMDGI5EsvtwDBmjtjZEC5Zaa0CThJc5 1z+WvT2HNI0/PiJzUnP9eSJu6FJq0CsumpxwarOy+Fm1X7Bh7ioOdxJ8/g4fRrOH0yEs Kk0A3zop2WIKlgL9TbzYVvtb26PdqR9vbvZbdis8EvAqYMQSVtouXH8WTmZlFekztCGd dHpjx2uxO4L3pd+N5BCt9FTcoyqwtMN+pMjg4zKswJK+MQky0JjpBrXtnmZIFMPtSulE mm+bELtGB/NLM2EI3XCsOdc65ty4Ck4ay+i2ZlcT8PcyS8FE8v4lMfLS1rIuiPSQQYMQ kmAQ== 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=srn3Uu2vDG2aRdVI3EqfE+6Vxmh+PUEDahJUuFfVqDc=; b=ggkyuosWc4N6RIoYJFECqNYix/CIJxZ/Fd5PjmCX2516PzzxghPtn4lY+pTSG1Dskb KX9Wm45t7FI87UEfi6RjNvOxDt+i7UZO1+ME3uODh/yvlfxNtEzorYpwxCICdNb7BVMG 00gS1EqexW5tvXhYXJwej+eZNy/fi6RJab8qnnz/qCd/Tc30dRx4cXisBHnnjXYM7Wfu vkrNm80kEIEiW2j5u+54H1hg4nCRv9xXfLDjplOxggUTnB48UPL+eQV7ZTOzX+5sGvzN OFh8RoVy/p2UdGsQq176QQzS6zthjs/3RMW++r3ubfsc4jW/4v8O+jo+7HmaIQJPw1DR y0XQ== X-Gm-Message-State: AOAM532JPQunpvGSlPTkNCbLdDOFfpY7K8sYRm0m5E76ZG03qZGrs4Zz D9rSbQZKbzeuFZLkpTmJH9Y= X-Google-Smtp-Source: ABdhPJwVodKl+JAqD3sfgsdc6SbZRkPogQHzT2HYLENRkEka/pBO24InUGFJXF0VI3tELseGrEMX0A== X-Received: by 2002:a05:6512:b1f:: with SMTP id w31mr509501lfu.617.1628727874544; Wed, 11 Aug 2021 17:24:34 -0700 (PDT) Received: from localhost ([141.105.67.194]) by smtp.gmail.com with ESMTPSA id h9sm102229ljq.92.2021.08.11.17.24.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Aug 2021 17:24:33 -0700 (PDT) From: Ihor Radchenko To: Samuel Wales Subject: Re: archiving speed [was Re: Tips on maintaining history in Org Mode] In-Reply-To: References: <87wnos8vqi.fsf@localhost> <87tujw8orc.fsf@localhost> Date: Thu, 12 Aug 2021 08:24:53 +0800 Message-ID: <874kbvpl0q.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2a00:1450:4864:20::12e; envelope-from=yantar92@gmail.com; helo=mail-lf1-x12e.google.com 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_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=1628727903; 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=srn3Uu2vDG2aRdVI3EqfE+6Vxmh+PUEDahJUuFfVqDc=; b=Dx083Qx/cv9gZ6XAs+Br5kRqVU/tMXxWd/Wc0qbHHbT1KgbFy2SiWNrzcYQ0SD6gzUu86H TsDBj1Ys/JsKFUWQ3B7xo8MNIUWn20YORZ8k8++7WlOT+UeH5yu4mWtUhNdvKTZT6VswN2 qfV0NLhPx5hxdo4jJdr0gARK7QCPsog/kwTb9H0iq8jrnv7qlbEK5T5sNruO0v79QvmiJ/ RoQhPfjgcFVXDHDg5WeAoHUlRd0B8sROsGWMg9WGWeUbGmC8/ZN27Rgnngxjpem2k15T3I 8h+LLEJ5eR1gLSW7IZnz9ISZNorKneVGF99m4gjwUt97zYZ8EPtXg7cO4djH3Q== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1628727903; a=rsa-sha256; cv=none; b=NF0oCnfHKm5w+3SxBTgJ3weKycB6pjZfkme7bpcCagJcuozt7tuC8J90BTMdkU3Ml/zRdn IYH7PfJCF+Rs7tdNdFJenrDKE56p9MjhPmrG/Du/zxOFpiYQyK8kS7/ezgDrycxUc8E19T 9PQK7SrpMezcYmRB5dxvjtvGrQc1gR0FUq1APnRnutczVGQTutuIeFVIEOxsY39lMaBqyz xcoRWGAWdF5IlkVOZM+hUVSmzPuXbYgAZp+NIO4YcwlhLSVZo+5YOcESNFvqNkb30YAHp8 Cb6xOxHBdKYpbQ6S20x4y3X7LWkh6lAVuBD0t1I3eeTPqIvRqCtfNYmOBV7GXA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20161025 header.b=mtmScHmx; 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: -0.81 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20161025 header.b=mtmScHmx; 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: 261FC1FA5F X-Spam-Score: -0.81 X-Migadu-Scanner: scn0.migadu.com X-TUID: E7WgFhi5pcE9 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