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 ms11 with LMTPS id 0FT1F2tfLGDdDAAA0tVLHw (envelope-from ) for ; Wed, 17 Feb 2021 00:12:27 +0000 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 UNmuE2tfLGBBCQAAB5/wlQ (envelope-from ) for ; Wed, 17 Feb 2021 00:12:27 +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 BB0F9156A8 for ; Wed, 17 Feb 2021 01:12:26 +0100 (CET) Received: from localhost ([::1]:55454 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lCAS9-0001DD-V7 for larch@yhetil.org; Tue, 16 Feb 2021 19:12:25 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:56552) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lCARm-0001Cr-4N for emacs-orgmode@gnu.org; Tue, 16 Feb 2021 19:12:02 -0500 Received: from mail-ot1-x32e.google.com ([2607:f8b0:4864:20::32e]:46726) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lCARk-0005wv-Nh for emacs-orgmode@gnu.org; Tue, 16 Feb 2021 19:12:01 -0500 Received: by mail-ot1-x32e.google.com with SMTP id r21so10535719otk.13 for ; Tue, 16 Feb 2021 16:11:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:user-agent:from:to:subject:message-id:date:mime-version; bh=yLefed0DbKKwFK3FsboUrXttsKX1+4ivbxMNYmZAF2Y=; b=cBt4BQWsvCSfAHjo9Ieatu0oYgZCGcU3fXNmxFp7QFUZuNIVlFfLFG9gvxa/YrEyPr 4uqgR9YEma2o4twYRUJaVbpvsDEhSuPhVMHTqtRGkscIofB9s5NLAfvg7Z8eUns8TJWD HZ+gbEcB/IgUS41aAXkuOGxO7cxAvldZ+JxVzGnozj0DPW6Rek+X/Sjm5g3GbHapThT+ 4OrIk5QC/hM2rCFi2heCg3lTFTu6HUd0QQ3dWXlfgjCFpSKy2IdtDa7pfkZiTu+lYfZS /YukmTEIKx6DC32g0p/Ne/PEIcdLqnPBBwmGu8Bo776e/MasOlPjKDivGhW/umiPp+v4 cAcw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:user-agent:from:to:subject:message-id :date:mime-version; bh=yLefed0DbKKwFK3FsboUrXttsKX1+4ivbxMNYmZAF2Y=; b=cQxMj5uY37Sb/DW4edHmhdhlmFvAWh4cB9HPBd9G3ow8dERbNnG5aEnbvNOr2pL1sP rYDVpLN+D/JRphBpS92Daq3HIWqRVuWx/LIGiTUH4EOfNRl6rsISm40NxmfMNPFBoDSf xYWwsx/6AqdvhAKRYoK6n6wYx+7M99y0pKDIfgjbOrH1xPsYyetgbW4s3I/TZwlaaJOF SOyVkItuq9/CTl+hxC9+19fWqRRRMaVd9zyfC8ZpWFfK2GkVWBkRQpUT6sUTKZ6GrIVi fnwpQyh9l77bYsYvfqyTAs6yUv+cvWX39V7Y0xe/l6w3AzoUiUbcRL5dYRJwz7jb8d/L +xJw== X-Gm-Message-State: AOAM533dfFRBuImc9boy9RbUhFB6WtnnV3+ml35AF/02p5/1aTENiOaq 4cpU0EHCICNN5DT2l9fBpxWLv269eGE= X-Google-Smtp-Source: ABdhPJyDW9BrYX+n9K0MpdVAMJT37cTP2U1RvQ1ECHANXAAMrxX4zoc+rczZF0WEbIdJs1EGDrWtew== X-Received: by 2002:a05:6830:2099:: with SMTP id y25mr14193449otq.268.1613520718863; Tue, 16 Feb 2021 16:11:58 -0800 (PST) Received: from AIBRAGIM-M-J8Z8 ([2001:420:c0cc:1002::212]) by smtp.gmail.com with ESMTPSA id j139sm116795oih.5.2021.02.16.16.11.58 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 16 Feb 2021 16:11:58 -0800 (PST) User-agent: mu4e 1.4.15; emacs 28.0.50 From: Ag Ibragimov To: emacs-orgmode@gnu.org Subject: org-agenda-list should respect org-agenda-max-entries Message-ID: Date: Tue, 16 Feb 2021 18:11:57 -0600 MIME-Version: 1.0 Content-Type: text/plain; format=flowed Received-SPF: pass client-ip=2607:f8b0:4864:20::32e; envelope-from=agzam.ibragimov@gmail.com; helo=mail-ot1-x32e.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: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -1.26 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20161025 header.b=cBt4BQWs; 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: BB0F9156A8 X-Spam-Score: -1.26 X-Migadu-Scanner: scn1.migadu.com X-TUID: xERp/U1Dch2S While going through the source code, I've noticed that org-agenda-list scans all the files in org-agenda-files and processes all Org items those files contain. However, it seems when org-agenda-max-entries or org-agenda-max-todos are not nil, it still processes every entry, and only after building the agenda it reduces the number of items in the list. It's okay, but if you have lots of files and tons of entries, it seems to be waste of time and resources. Just wanted to bring someone's attention to that. Thank you!