From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id ++3kH2Bl92J8KQAAbAwnHQ (envelope-from ) for ; Sat, 13 Aug 2022 10:48:32 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id AIHsHmBl92Lu4AAA9RJhRA (envelope-from ) for ; Sat, 13 Aug 2022 10:48: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 3D6A838AFE for ; Sat, 13 Aug 2022 10:48:29 +0200 (CEST) Received: from localhost ([::1]:41024 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oMmom-0007MT-0J for larch@yhetil.org; Sat, 13 Aug 2022 04:48:28 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56334) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oMmo4-0007MK-VT for emacs-orgmode@gnu.org; Sat, 13 Aug 2022 04:47:44 -0400 Received: from mail-pj1-x1032.google.com ([2607:f8b0:4864:20::1032]:54795) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oMmo2-0004VG-DH for emacs-orgmode@gnu.org; Sat, 13 Aug 2022 04:47:44 -0400 Received: by mail-pj1-x1032.google.com with SMTP id gp7so2908316pjb.4 for ; Sat, 13 Aug 2022 01:47:41 -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=NnXNrD49uBDSYDf1vmQZ9OPq1gDeOtS7nnTD/V5ExTM=; b=j13T8vTV8WMi9obKhW+Y6gVpNTEa7xMmTqERra0tDPMsAeXRXsI2HAPdDfcd+ksFKF jHDhpt7pH+GVjeF6W/KqhaP2lbG74SZZ4nD9jhMhGL8anRWLVgdRIXw3JVlZWQPMkStc bp5ck7kebKqe1HyaQLZdyAAL8MvQlnFS1yCUq23+Sxxu0bzDOH3zJ+xvRzgtk+mepcHe A1mwQHSsanZorHZzac6BqyHmpOeu2eeg9w++amBiN73AwA2Flu/tishTj/Kj+dIXSY7P 8ziXvTwZQsTAGHEcJXjyK5xo6p2mMxp+Shd1b6wPCBRlDsg0+EqlZo4V7wQdfl+9NbUE ivIQ== 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=NnXNrD49uBDSYDf1vmQZ9OPq1gDeOtS7nnTD/V5ExTM=; b=ZS1Y/vK8fUjSe0hFAC6MSLDzIACeA7HWftjRtB7KbDOD4Os4NtE1ULBz00Zpl8VAkW 516FMy2LlzY0KtsfD6okcEOTF7N/maNahslOIk118Ew4r4mxoyWgJ828ayjkY+2Y4v/N /gaU7EQlpIeMgfwhAJMWH3VV3gkCeeL+y3fbRmWpnGb6VHYKVGO7+Gou56ZjhFnriT6g syazc3cdlwiaQiBsgUXnbFsms6CTJJ/P2/18efx+UaHzeQ5c0uaFZ3hlCHc8m+ixZnEr DOe7/0Xj3FMZ7cWTUwQm0oYekW506uu77Oq+lGPYSNl6H5yrPHIqui+f9ULY9WYQkKdR ORWQ== X-Gm-Message-State: ACgBeo1kgpGphZd5XUNBsinz2kLHCE/wseqdSTavmnxMuerOgM0DHdgd YEPi6Swk0VFsCX4vt12ai7w= X-Google-Smtp-Source: AA6agR4fssvHY2A1fnt8SugQw1fXcKro6xsZYRzatKc/xZm8y9g1JVCy4RSaFyzqgTM2YflxmSSTpw== X-Received: by 2002:a17:902:f70a:b0:170:c5e7:874c with SMTP id h10-20020a170902f70a00b00170c5e7874cmr7534797plo.109.1660380460832; Sat, 13 Aug 2022 01:47:40 -0700 (PDT) Received: from localhost ([2409:8a70:2bf:80b0:8ec6:81ff:fe70:339d]) by smtp.gmail.com with ESMTPSA id q6-20020a170902a3c600b0016c78f9f024sm3144232plb.104.2022.08.13.01.47.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 13 Aug 2022 01:47:40 -0700 (PDT) From: Ihor Radchenko To: "Christopher M. Miles" Cc: Org Mode Subject: Re: [PERFORMANCE] Why some org code is so deep invoked? In-Reply-To: <62f75d06.c80a0220.460f4.cc42SMTPIN_ADDED_BROKEN@mx.google.com> References: <62f5a905.c80a0220.1f07b.ffaeSMTPIN_ADDED_BROKEN@mx.google.com> <87o7wq8c1m.fsf@localhost> <62f645de.050a0220.ff872.76ffSMTPIN_ADDED_BROKEN@mx.google.com> <87h72h8v1j.fsf@localhost> <62f66552.050a0220.ed346.ac05SMTPIN_ADDED_BROKEN@mx.google.com> <87lers7i2x.fsf@localhost> <62f75d06.c80a0220.460f4.cc42SMTPIN_ADDED_BROKEN@mx.google.com> Date: Sat, 13 Aug 2022 16:48:42 +0800 Message-ID: <87bkso7clx.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::1032; envelope-from=yantar92@gmail.com; helo=mail-pj1-x1032.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=1660380509; 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=NnXNrD49uBDSYDf1vmQZ9OPq1gDeOtS7nnTD/V5ExTM=; b=KYlPRTDAv3OVoCbSOC6vBuoSH80R+2PEVbiDxgYzlTQTt+wHlqIiUvwabvwH1LwWR5T6oS AZVUxgevr8+mh76F6I88Fbek46/pfqa2lqt4tgITfsLt7utUWrmxMVTjyFQ7QATJIpRJ0+ ILMf+gmW63pkG7zGOvJUbxwwVHrmjSCKkKzYmcHRrJDKyy3GZexsFVT45cVE522ZYbB2bB waZT33NA1+Y1sOXzUQwhyGfJ2FiZt4ymKdK+oYSwmq3AfJCYOMlBLJhzWTOXIJTBoZ0xOL YSxzzuFfgULpkyTQL40Xsy5bIyjuYn9jOTNVxfhKNL/O2yKBZgrMTM+3648mNg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1660380509; a=rsa-sha256; cv=none; b=Q4XIE0d1MJF7nW48QtdAwgOeYV7hIMhFLbNyvJDI8Erky0jm6xFtsNsFPE2AYvvQymoP9S /UB9pxxPdVkrPvUg/cyh1doFqH58DWCSmnPdRep4CmFfbgsGjqHv/JARsKnJJ0JQ3mX7Qh pFeUdbpQyPgBP7bB7Xpq73VhSvclRuovmNrtQGR2cWbGeTUXqn6YTu/nO3ZSYPXTohMYVf 1vWgrV4WrIFKNhOWMd6fDTa7qTDIvi3piLdIuM7tvEKrY1P/SPnmhTBO+gYsVHCNgonTQP DGGuNUYSpFUq39nNrWK+lK6AjqxHl4U+kCjTOu+rxebju76oLg0C4yL/j12+Yg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=j13T8vTV; 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: -6.36 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=j13T8vTV; 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: 3D6A838AFE X-Spam-Score: -6.36 X-Migadu-Scanner: scn0.migadu.com X-TUID: JW4I0h/MzlTD "Christopher M. Miles" writes: > After applying this patch, seems deep level has improved. Thanks for testing! Applied onto main via 6ad65f333. https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=6ad65f3332937dee81b1a7dc56a6dca7bd4865ae > I attched the profiler report in attachments. May I know if you have a nil value of org-element-use-cache? -- 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