From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id OGqZMvWx9WJsKwEAbAwnHQ (envelope-from ) for ; Fri, 12 Aug 2022 03:50:45 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id IAmVMvWx9WKX3wAAauVa8A (envelope-from ) for ; Fri, 12 Aug 2022 03:50:45 +0200 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 568981FA62 for ; Fri, 12 Aug 2022 03:50:45 +0200 (CEST) Received: from localhost ([::1]:34788 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oMJox-0001zO-Qd for larch@yhetil.org; Thu, 11 Aug 2022 21:50:43 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59408) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oMJoQ-0001zD-5M for emacs-orgmode@gnu.org; Thu, 11 Aug 2022 21:50:10 -0400 Received: from mail-pj1-x102f.google.com ([2607:f8b0:4864:20::102f]:54835) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oMJoE-00067C-LD for emacs-orgmode@gnu.org; Thu, 11 Aug 2022 21:50:00 -0400 Received: by mail-pj1-x102f.google.com with SMTP id gp7so4823946pjb.4 for ; Thu, 11 Aug 2022 18:49:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:from:to:cc; bh=IOzZ79ISehA0OLkOKE47eITkzCTxE0snqPNHAy64VAM=; b=e0s9ZFUSpX7UKFm8NmEKyVMnIYxBPVyD4cg/2tZugmi3l0X31Gfk+4dcPHP82egxhF zY19jo/he0MccOiiwrNcWiVO6u3HEOcF8Fr89kJ/6T4JR7a0whWlXLY/0VI/qm3Yjh60 6uVlGnX0piTd+BJI0VjJSY1b/yYqMhICjfKXuWr1WuDTCfDLB1u4YZLYjYHoxnE9mCpU 6f2tsXyqGVtVOpzUQgcBoczmCtBzFiQfMGG7OlWD19XXGFluSM6CQg4JSUIhAykbndMM 2M+5ICgdZvzZjEDT9917AmVGPlYFDxuWr9994mSgD7iAR2TzamA8L3usHjKZNzjOWF06 bj5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:x-gm-message-state:from:to:cc; bh=IOzZ79ISehA0OLkOKE47eITkzCTxE0snqPNHAy64VAM=; b=ui2HzEzc+UnKTG3ciVVFg2JYanzQFzI1dyj13GeO+O/u7gsx/6XQd8gbsdfMRn/iBg jY3FcMDenY1fb+0bCGECeE4XDiqb/2NHS15gwaqPyPnXidpGKJ9HbxyQ7ZgQLKpFToh6 9EEsr4waM0waVgRDYyp1heNyMtGiMO2dVYHsZXDdGuS1vVh2E9Z9v/yXx0kWMAhPwGLE aceqgAcAI9Cx+BBLba3E5vYjLhxL9BbqvS+XZiEjHZp6zHYl3md4R3SXMm8yooVLJ1fK sFFOz3NfawkhWPzL9SSnQDma9uT3tGdqGe0xtSgaUiymUIGXKx5i9MjuwDsaUMM6wWtC GRyA== X-Gm-Message-State: ACgBeo0yW1BnrHm1uyfBU9Ujk2yuQlYm0TRbkF2mPs4jNsmY4orrks4D tMCaOcbnueQG5tWym61Am4A= X-Google-Smtp-Source: AA6agR4YL8DpWpfUQrjKLCKfzz2xlQKqYDH8meNK4BWoLqG5hgzr96uPsTdL0sc0ub6yKbtD4ZVR9g== X-Received: by 2002:a17:903:18a:b0:16f:e43:efdf with SMTP id z10-20020a170903018a00b0016f0e43efdfmr1823608plg.157.1660268996686; Thu, 11 Aug 2022 18:49:56 -0700 (PDT) Received: from localhost ([115.154.175.57]) by smtp.gmail.com with ESMTPSA id u5-20020a170903124500b00162529828aesm348043plh.109.2022.08.11.18.49.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Aug 2022 18:49:56 -0700 (PDT) From: Ihor Radchenko To: numbchild@gmail.com Cc: Org Mode Subject: Re: [PERFORMANCE] Why some org code is so deep invoked? In-Reply-To: <62f5a905.c80a0220.1f07b.ffaeSMTPIN_ADDED_BROKEN@mx.google.com> References: <62f5a905.c80a0220.1f07b.ffaeSMTPIN_ADDED_BROKEN@mx.google.com> Date: Fri, 12 Aug 2022 09:51:01 +0800 Message-ID: <87o7wq8c1m.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::102f; envelope-from=yantar92@gmail.com; helo=mail-pj1-x102f.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 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, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 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-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1660269045; 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=IOzZ79ISehA0OLkOKE47eITkzCTxE0snqPNHAy64VAM=; b=PCA4u/zsTPFiKdbTK5TjgnMIQUJSQeeDgSM8AmHjDOZAlWJ/+J6stNqP1gqiPQ/K+KcnbR pY/2nrWxUFbTOeeQF4QanZ6KHyfAk80r8MtESRYudlW8J72/JUtmnnL4YU5mzL6+Sf+Ig4 L4LYiDpAtcGWg+5H83sarYZPYacOS+ZIkIK761zDWdz1MNac6n0X08VG4ruKkxJJiwx/VP vED4qZ0sf3v3pytwhVfClLOX+Be0BjurCAyUO/ZQ7qZ+x48CkAccx0nfzA6X8U0YBaAo0d ZDP+QIa0t29OK4oM5rJOLVlKFtYHPaPyHz6v1slmUGPChDszYw+ZLgO4VIRMhw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1660269045; a=rsa-sha256; cv=none; b=Pp2bpGY62Xh+NhhnyV6qydoAim402wMpPdcn4obs/Nl3nrrfLIs9nScq9raPUGCiGNgm/P CU6bH8TOAfzTX62t5xCx8TiHV5KQstQZrzlZN6ZE/pdcq1rXR626miYHsaTgNwtOfTLNYQ O+Eg8ImbUPERelpG7aTPmkLnqNejXWRuNEcAJOdSNz4656uddn3MsU4OXlOhH6L31/Nhf3 LB8JgfzzyNWV59gy+AhTf6dg9s/klhHc2X+nf6HuCg2Z+SupCzPwRA8Vxb/oEDKdso3o+v QiTPE1c6joGBxRLMw/uhWXMWMOlUCVNQrcEGU57H93n96Ejer/iVNAuKDKafbA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=e0s9ZFUS; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -7.38 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=e0s9ZFUS; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 568981FA62 X-Spam-Score: -7.38 X-Migadu-Scanner: scn0.migadu.com X-TUID: POGhKUQEq77L "Christopher M. Miles" writes: > When I profiling Org Agenda generation, I found that org code is deeply invoked in Emacs profiler report. > > My Question: > > - What reason caused this situation? > - Can Org Mode optimize those deeply invoked code? Could you please clarify what exactly is your problem? Is agenda generation slow? I do not see much issue with deep nesting of the code. -- Ihor Radchenko, Org mode contributor, Learn more about Org mode at https://orgmode.org/. Support Org development at https://liberapay.com/org-mode, or support my work at https://liberapay.com/yantar92