From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id UPlbGexh9mLSkAAAbAwnHQ (envelope-from ) for ; Fri, 12 Aug 2022 16:21:32 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id 2IygGOxh9mJJjgAAG6o9tA (envelope-from ) for ; Fri, 12 Aug 2022 16:21:32 +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 055B33DC12 for ; Fri, 12 Aug 2022 16:21:32 +0200 (CEST) Received: from localhost ([::1]:55314 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oMVXX-0000AI-1P for larch@yhetil.org; Fri, 12 Aug 2022 10:21:31 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38564) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oMVTJ-0006lp-4W for emacs-orgmode@gnu.org; Fri, 12 Aug 2022 10:17:10 -0400 Received: from [39.171.214.252] (port=14671 helo=Mac-mini.local) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oMVTE-0004UH-NW for emacs-orgmode@gnu.org; Fri, 12 Aug 2022 10:17:08 -0400 Received: by Mac-mini.local (Postfix, from userid 501) id ECBC65E88900; Fri, 12 Aug 2022 22:16:56 +0800 (CST) References: <62f5a905.c80a0220.1f07b.ffaeSMTPIN_ADDED_BROKEN@mx.google.com> <87o7wq8c1m.fsf@localhost> <62f64617.050a0220.b0be5.b717SMTPIN_ADDED_BROKEN@mx.google.com> User-agent: mu4e 1.8.6; emacs 28.1 From: "Christopher M. Miles" To: Bill Burdick Cc: numbchild@gmail.com, Ihor Radchenko , Org Mode Subject: Re: [PERFORMANCE] Why some org code is so deep invoked? Date: Fri, 12 Aug 2022 22:16:06 +0800 In-reply-to: Message-ID: MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-Host-Lookup-Failed: Reverse DNS lookup failed for 39.171.214.252 (deferred) Received-SPF: softfail client-ip=39.171.214.252; envelope-from=numbchild@gmail.com; helo=Mac-mini.local X-Spam_score_int: 58 X-Spam_score: 5.8 X-Spam_bar: +++++ X-Spam_report: (5.8 / 5.0 requ) BAYES_00=-1.9, DKIM_ADSP_CUSTOM_MED=0.001, FORGED_GMAIL_RCVD=1, FREEMAIL_FROM=0.001, MSGID_MULTIPLE_AT=1, NML_ADSP_CUSTOM_MED=0.9, RCVD_IN_PBL=3.335, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_SOFTFAIL=0.665, SPOOFED_FREEMAIL_NO_RDNS=0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: reject 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: , Reply-To: numbchild@gmail.com 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=1660314092; h=from:from:sender:sender:reply-to: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; bh=rOojjd8KjVfMSYV8Vsd3Yt797setZv95WYzgs0f4Dek=; b=P2hmVrXKoHJLD7IkAgR4r0X02tzegM3OXZFUPdBycBa4fBVXFP5ulL8N1bjY9a/6Y4UccG 4Emm1XbxbIdUG1jkul4/B1GP47ErbpcCaT2gfMEGziQ/Ry+rdowUS2EeR6spsnrsyRFC69 /V/kWbt1ZQycVKE6uOMwpLpThqEeVO8s45j+hnQZwNwIJpiq4dw+y0N5dMetSvIdFqRjNH ICfW6/fIQ6Qnr2po3RjGBjbNfFFSkqOW0yEnXgLaDB/NLHa/uzOKAwwNKmcPf+bEtd8HzP YFGxsU8x4G8jWpKe0BjqltEHfaR9pI6oNKbxsesB+DVy0pNrLA2XB+nRIIjElQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1660314092; a=rsa-sha256; cv=none; b=OvOvvW0sMnI1TwS+tAsf3tD+NIuIzdkYyUuzRo2lZqr5FbFoRvnajYSsciyb5mKtysGeKS fr7L/fU6yNbxtZkdTO4NDVnmYXSbiwZkre1VzFuumQ9oELyjQXvkBWP/xcKzMBEoz3Up4J MlH9Vlos5zHbLyzYt+zTt3L1L2u4pqlN3vO4yktm2csYcVgrNzxWJP6XA7KACwHptGppKT +A/039E2yyNclZlkBan3urS2N48Jc47L1c2ZwCW/bXWcCiRMR+0w168qkfSLfLYGQi8lPJ aiZdGVmDsU97c0UDaJFsS9ungnogj4dnXVDWk000xgOFEyH3HQxpbE0DpRVEOQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=gmail.com (policy=none); 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: 4.23 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=gmail.com (policy=none); 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: 055B33DC12 X-Spam-Score: 4.23 X-Migadu-Scanner: scn1.migadu.com X-TUID: BtnFBSOnM/4g --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Bill Burdick writes: > You'll have this with recursive code and recursion is fairly normal in Li= sp programs. > > -- Bill I think this profiler report invocation stack is not recursive code. WDYT? > > On Fri, Aug 12, 2022 at 8:22 AM Christopher M. Miles wrote: > > Ihor Radchenko writes: > > > "Christopher M. Miles" writes: > > > >> When I profiling Org Agenda generation, I found that org code is deep= ly 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? > > From the profiler report, you can see that Agenda is slow on clock table > generation because I have ~org-agenda-start-with-clockreport-mode~ > enabled. And this deep code invocation is from it too. It's about 5 > seconds to generate the org-agenda clock table. Actually I can tolerate > this time, Just found this performance issue when profiling and curious > to ask this question. > > > I do not see much issue with deep nesting of the code. > > Is this deep nested code normal in Emacs Lisp? > > Usually (based on my less than 20 times profiling experience), Emacs > wouldn't have deeper code than 40 levels. But my attachment profiler > report has more than 100 levels. > > If this is normal and fine, It's OK. I repeat, I ask this question for > curious purpose which want to get an answer for not important question. > > --=20 > > [ stardiviner ] > I try to make every word tell the meaning that I want to express without= misunderstanding. > > Blog: https://stardiviner.github.io/ > IRC(libera.chat, freenode): stardiviner, Matrix: stardiviner > GPG: F09F650D7D674819892591401B5DF1C95AE89AC3 =2D-=20 [ stardiviner ] I try to make every word tell the meaning that I want to express without mi= sunderstanding. Blog: https://stardiviner.github.io/ IRC(libera.chat, freenode): stardiviner, Matrix: stardiviner GPG: F09F650D7D674819892591401B5DF1C95AE89AC3 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEE8J9lDX1nSBmJJZFAG13xyVromsMFAmL2YNgACgkQG13xyVro msN7GAf/dP1silNF4YPKlvW6jSH7/eNK8Juz/zCmJk/ChfRH34VfzhpxHSx1VKME sVHZMdPjcTocN/cUrsgPZ+bhRydxq/oL8LSfSO2X6YB+Zvybv18xMBLYktrhQEwO QGbmMAHpcwrJgjp5Jy9XxThW6wI6ktNxrtcdM98irMawemtRJwA6AlAhfY3kOu2C +OAsmcdtOqi1vxlM8gLpvLhl2NuGnT8SbWbHguveCLGwMkEXs3rDiwygzsOGfUUo o57Ydnf6PpBO9oKBT5V+Zb+zmHa/w3JNILt6iXRwbbYxCKWjEogoTEg83k2YkRso cgVWKn+z47THZmNGNBTb6pWPDIXaEA== =fSVV -----END PGP SIGNATURE----- --=-=-=--