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 QNSWHRwjE2HtJwAAgWs5BA (envelope-from ) for ; Wed, 11 Aug 2021 03:08:44 +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 uP0SGRwjE2GRPAAA1q6Kng (envelope-from ) for ; Wed, 11 Aug 2021 01:08:44 +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 8BC0A11441 for ; Wed, 11 Aug 2021 03:08:43 +0200 (CEST) Received: from localhost ([::1]:52220 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mDcja-0005xp-J3 for larch@yhetil.org; Tue, 10 Aug 2021 21:08:42 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55376) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mDcj3-0005xS-8w for emacs-orgmode@gnu.org; Tue, 10 Aug 2021 21:08:09 -0400 Received: from mail-lf1-x12b.google.com ([2a00:1450:4864:20::12b]:36446) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mDcj1-0000SI-6w for emacs-orgmode@gnu.org; Tue, 10 Aug 2021 21:08:08 -0400 Received: by mail-lf1-x12b.google.com with SMTP id x8so1923155lfe.3 for ; Tue, 10 Aug 2021 18:08:05 -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=4ibZMxnSVDRY5NE5zktYhMGg76ckZ+WM+KFsMGu7njA=; b=l2+TLrPjoMVP+4mUainwyH1oqYCbbe9ojtemEfUTD6yHuVtLci3W5JSgVgOemwOdvP qVCYrhsfygjFhMYdBJFpIbAKlAQQgIkeZG3ZyjWgS9ia5vDrjOrDRgRex3JAj1q6PDku wL9JI7uMeDqJfU8w/AjlzmB3Ga8v4uH5gR1RdKQC1ot/K1itZ48HDgjfBrwKZpOH9t0E at/bZ4cKrXXPzVLn4mELVUapn9xxjZmdyy52S7oL/2U+Ul+DKN8KGqjhc2uFaIy7/VsO 88po6P9fdd/odImwpuryHXQKTleXYBfSc7UIWE8icKivdViMheaVzJugjkc410uaIGlR jUsA== 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=4ibZMxnSVDRY5NE5zktYhMGg76ckZ+WM+KFsMGu7njA=; b=LgyGFwoLeN8eZsg1FSXaiKTZxSCECnbZa4Lm5ZuH3hkOt9GMvd8oMncf+eUbRGJDY7 8sPcp8thgO9myJ7TA1xzwZH3XmpV7zbfp5Sy7jFpTBsiM4AoOFfejv3fwilB04yAb/5N pdDG7OOZLcS96ABBdSwCeP4fFxJJIqqk6iKTaxKwHOCpOUbfvQ9JJu3TzhOs2ylcbY6S wqWfONn/Ym2H/MDSLW6MJVuCokVFvtwZxV9NTpGk3JKHcLSG9pyq3O1/HdzFEiXJ1DyI s1kjvjoUW3pgW4F/a6gy9Bm4V+22OlHO9sOGlnzmWvskU53TRFd1OUy/t9RW4YaL1zft wZjw== X-Gm-Message-State: AOAM532kDm7f0edmXeEvdbtQOee2vaRisZfaZDAReBKWH/bfFjpgTpOL HSf0ccThccs5sm89EtJ4MHjL2fO1P3PUrax7Q4s= X-Google-Smtp-Source: ABdhPJz0YGCiZA6Mz1XhQvDOtJ449SpukxAl2Tq6B1rjrbzpln1yaa64WB5QtDDfRuEq5mHMmMciRKhPHhL1XPuCPAs= X-Received: by 2002:a05:6512:2153:: with SMTP id s19mr2966648lfr.140.1628644083994; Tue, 10 Aug 2021 18:08:03 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:ab3:428e:0:0:0:0:0 with HTTP; Tue, 10 Aug 2021 18:08:03 -0700 (PDT) In-Reply-To: References: From: Samuel Wales Date: Tue, 10 Aug 2021 18:08:03 -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::12b; envelope-from=samologist@gmail.com; helo=mail-lf1-x12b.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=1628644123; 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=4ibZMxnSVDRY5NE5zktYhMGg76ckZ+WM+KFsMGu7njA=; b=Ms+0SDdjYnjXGlk+01lxu0eXTji2azAUKvAXgmaCU4bp3+Z3rM8SfgOPltTjBJoLPwW9jd 6j8zkDvXqhRA6FuE5S5K/dDaH0S2fqlAT9cQVFBALtAh3gPcJR1lZnuBheScvYpvRQDia+ cveQ4epChkUgZ6+6gobcwqjRnCcoXAip0/IqT+EkavrX+egCFe2OJy6WE6a3mq9bmUCnp/ GdWSGwqQDxniGCG8skiyVnzFBWRWmQE4kkvq4/jyOZT8AzEMffZhaCSEi+MiCJdwqBCz9j KXFvG9jch+awCadLe13+bNSD1AepA92y9g7SLTz0EkD57ms2MFQql00lqKdwwg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1628644123; a=rsa-sha256; cv=none; b=OlaJrX/KzWWxe/wSxSDYEUG4Lwz+DbATXLpr2SyOMe0En8j7UPfKq5igCaVAPlSVmSPDxW Kq9LLhXeVtmu8lyu57BBZipXLlkPrqJijFuP6dIua4COGYJ/XNSwGU20z2YzoUOQJkNupf NeNq3siUHxohfo0mvYIMfLj6yDy8afYu5jgdT1K7MBrn7WjWet+FeGoZnQjU7gLIr2FNLQ uvCvxEJZUtBv8Ugt48nM+s1qL6N4D50+Zxxz8YG8Ro4QCr9rwHLzW/KnaIUoWW/b3Cym65 Gg1eGcUXvE9Ns45b5zPru2TWZ/jkTqKioo1gUweE4JiGMxFtlMYHSWhkC/BdvA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20161025 header.b=l2+TLrPj; 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=l2+TLrPj; 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: 8BC0A11441 X-Spam-Score: -1.31 X-Migadu-Scanner: scn0.migadu.com X-TUID: GsIkVg2qfbGf i have not bulk archived in a year or two, because it is too slow for me. i am curious why, when appending to an archive file, append-to-file or write-region are not used, to merely put the entries there instead of loading the archive file into emacs? [this is the case even with zero-size archive files; after a few entries it slows down.] On 2/28/21, Samuel Wales wrote: > 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 > -- The Kafka Pandemic Please learn what misopathy is. https://thekafkapandemic.blogspot.com/2013/10/why-some-diseases-are-wronged.html