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 4FSaCDUnHWFTIAAAgWs5BA (envelope-from ) for ; Wed, 18 Aug 2021 17:28:53 +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 ML1ZBDUnHWFMeQAA1q6Kng (envelope-from ) for ; Wed, 18 Aug 2021 15:28:53 +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 8D65F2C2F for ; Wed, 18 Aug 2021 17:28:52 +0200 (CEST) Received: from localhost ([::1]:39628 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mGNUp-0006lu-4p for larch@yhetil.org; Wed, 18 Aug 2021 11:28:51 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54428) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mGNUF-0006kH-5N for emacs-orgmode@gnu.org; Wed, 18 Aug 2021 11:28:15 -0400 Received: from mail-lf1-x12a.google.com ([2a00:1450:4864:20::12a]:38637) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mGNUD-0001lb-HX for emacs-orgmode@gnu.org; Wed, 18 Aug 2021 11:28:14 -0400 Received: by mail-lf1-x12a.google.com with SMTP id x27so5471259lfu.5 for ; Wed, 18 Aug 2021 08:28:12 -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=zt5pwOUvySlZfbT3YAMp4iAadpw6CieoI6g1dRd9Z40=; b=F+RmHfFyUxmHR9WatbfoJaTY3gN0L4BBYNQdE4umHK68qyoJvkf+JCk2+JQAJ/K4Dj 2omWBWRK+xwXjz0jX0vbnBLaolCAS8NHMLV9X2cuHI8R5202v5K2qoGjQCJbH1lx4LiV KAeqUoz24BYTK63ePn0TjiCvDDHwwm56se9LWKe8RlD3c5/raY/Z67dzNHNRucx9xXSE VxjtSi/2RWj1JZWNO61mDe3ScFH1Aucy6g7KFe/i2V2RyyMC0yHpuAgWu1LGK++WDv/U qDyZ5f10qlADYS0G3IbfzONEmdms2Y/DjAd9HME8uvpMhk8aHt6Hbu+ieevvrq3Q6sLS cGmw== 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=zt5pwOUvySlZfbT3YAMp4iAadpw6CieoI6g1dRd9Z40=; b=TaUvdK7DjCQypNYSmBP/2IrGkIOFtLsuCjVtjhxVwdT+H1cj8mMC0o15VpBLOnUbtr UOGocspDXnUqygCweW3IRoNUbgvvncnJ9vRS55gtpR0IcgnY2UvXQEKPMHnMOtG13h0f 5ByigOULrbVQk2wtUAey6m0lJ4QDli+Ft8VgKfP+EXI1fDDbVgYqKLOJpeyAGDSERMWz SsszmxZtN3LYoWkyzmtsyf8md+uZf2J3FKioW0YcYyz4wTm+5D1TEU15IOc+Gdf/Srwy hXni4+HbI0t6iDJTD9Ui6j5oCD0zzRWZvA++/KlhwOHgYKPT+M+j+ACcAd0B7+NF2jba vJPA== X-Gm-Message-State: AOAM531e1TJr1q/eQjWaa5c8DDT8q4Nvga44nJahbDB7CIalbjeeLrke Tzt11eIDAyLRD5G69bpQ2vY= X-Google-Smtp-Source: ABdhPJwBeMBykNRFTfzYF5Zwl4Pm60uXlWmvqYQACbyPkJsBnNTzH8u9CvIi5HQgZQxb1ur+iMw5Xw== X-Received: by 2002:ac2:5fef:: with SMTP id s15mr6918091lfg.425.1629300490563; Wed, 18 Aug 2021 08:28:10 -0700 (PDT) Received: from localhost ([141.105.67.194]) by smtp.gmail.com with ESMTPSA id j15sm20407ljq.108.2021.08.18.08.28.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Aug 2021 08:28:10 -0700 (PDT) From: Ihor Radchenko To: dalanicolai Subject: Re: Build agenda asynchronously In-Reply-To: References: Date: Wed, 18 Aug 2021 23:28:36 +0800 Message-ID: <87sfz6n55n.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2a00:1450:4864:20::12a; envelope-from=yantar92@gmail.com; helo=mail-lf1-x12a.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 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=1629300532; 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=zt5pwOUvySlZfbT3YAMp4iAadpw6CieoI6g1dRd9Z40=; b=Z/66XTHDdS3ltvu6tVpDyRozy0vAGHYgFYkqv36sJsSpXEbvcSZQpIB7tLbBNyNyqT5rbh dpshkSA4CsqDmzAhFMSDGC+hD0Sn1K2QnfaD6buVe2L0ryi4KZx8cOjRR5DaZodYq29liD jdHg3Hqy9DJaQduQVeI5452r44KhQmFilVONxEyCLk1Xos3f72fe9BnimIDUy+PHp/xzDY 9yB76tjji7IMmZCcc8VvZ0uHzH11GrEQ9EN85cp/M1EY8k/HuZhne/OYIishzcye99wbk7 RwTy0Fgnpx4USvTppSDo5+yXZPbF2XYq4VKnIwRvDh0BTXVu5uAtEWZuR3rNRw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1629300532; a=rsa-sha256; cv=none; b=P1S5/WlIs7BhjWZwKQJa1ps4U2gm6nYAM97fZDpIKwl/KMdabf0CCyzY/4opWR4j3ysoc8 o4i70zxAN91HRtCZJjvZZmVKSLhv1Zvx9lg+LmEYU/npvPZremnmodxgz2w/EdeOxKXQAc sMKpvGUCxHRx5gfjyTdCJs+DpaUQRTdL3KHncFBAjKyBOo3SjFZVMB1HOijMwm/0/uxZfs /W0HpOie3AqbXR81QO/U+VEyCUMTzCZyS6CAlENwL1oIcjxCa5L9r/o8x7U7oO0Kj5RP4q JxJjFV3qVojEtaEFyqAzDp+IUxfPPIFnyb+xj+Xq9nYEfPhyPv6jWuBanGaKEw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=F+RmHfFy; 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: -2.62 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=F+RmHfFy; dmarc=pass (policy=none) header.from=gmail.com; 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: 8D65F2C2F X-Spam-Score: -2.62 X-Migadu-Scanner: scn0.migadu.com X-TUID: JNek3VhPXD6Z dalanicolai writes: > There was a question on Stack-Exchange if it would be possible to build > *org-agenda* asynchronously. I could not quickly find any good answers > neither in the mailing lists nor anywhere else. There was a proof-of-concept code building agenda using Emacs threads: https://orgmode.org/list/87k172ot2m.fsf@yantar92-laptop.i-did-not-set--mail-host-address--so-tickle-me/ However, if your agenda is blocking Emacs it will only get worse over time. Async will not be good enough eventually. I recommend using org-ql. It should be enough unless your agenda it taking really a lot of time to build (10s of seconds). Best, Ihor