From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.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 vrl0I3HdkGOeeAAAbAwnHQ (envelope-from ) for ; Wed, 07 Dec 2022 19:37:37 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id cLilInHdkGOXkgAA9RJhRA (envelope-from ) for ; Wed, 07 Dec 2022 19:37:37 +0100 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 2E1F7307C for ; Wed, 7 Dec 2022 19:37:37 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p2zHc-0006ju-DJ; Wed, 07 Dec 2022 13:36:40 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p2zHa-0006jb-A1 for emacs-orgmode@gnu.org; Wed, 07 Dec 2022 13:36:38 -0500 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p2zHY-0006bm-8I for emacs-orgmode@gnu.org; Wed, 07 Dec 2022 13:36:38 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 3A502240104 for ; Wed, 7 Dec 2022 19:36:33 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1670438193; bh=dwMgHLcVpjEodN1IMdbkRIhyvbxmIiHDk/iztmyu+Q8=; h=From:To:Cc:Subject:Date:From; b=exLDsT4NPlr3pkrM1PXkc4D4zspnGWeresAZ2fY78ddCm2ni3DWmTRzaKlzCXlV2S wwEteUIbIa6SCrvnsPL5fogltUiKEKHcqmBmRDLiMAmAg2FIc6GxF79N6NcyDM8Yek P0+oARXjm6u1gl/U5y9pcJae9oQGT2+dk8cMklCFev+haCe8HLAQhkREwBLuwsLH/X WA30pAiRZZhZS8X3bqWZyifV2txQTuYq6vQEQdtNkAiKfGssKQZrRcC7YMtXCG1vqp 1WG4FnI4D/+96qLGm564d6ABlgRTX7mOmpDJoVrEVu5N/Zx2GW6HUNQ4wLOLjJLuvn g5iLktLgRS21g== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4NS5bN4nmfz6tnp; Wed, 7 Dec 2022 19:36:32 +0100 (CET) From: Ihor Radchenko To: Mark Barton Cc: Eli Qian , emacs-orgmode@gnu.org Subject: Re: Clocking in is pretty slow in version 9.6 when the item has a large In-Reply-To: References: <87a643f4ng.fsf@localhost> <877cz7f2wo.fsf@localhost> <5DC9610E-5849-4C54-A32B-C8C7A1106012@gmail.com> <87h6y7h1la.fsf@localhost> Date: Wed, 07 Dec 2022 18:36:24 +0000 Message-ID: <87mt7znjrr.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H2=-0.001, 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.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-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1670438257; 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=BFC1Z1MaKeqf/UvjkR/88+dNXLs22ouD3LycE9b5/2g=; b=Jz5rLTfVi85azevhITkgDDJFX7yGpRdw3490X6ZC0s+sw31HKLRn+kTizmpl8q1JMohzBG PRGbebyUnF4v16lZYYx2ue9CY4ItzksZis/q+/wZ6H1t1KZHA6sky2KGnenQXIxQzcYZMz TwMZNh3/FHF5JLzSFhFnYXUu6cQRqNIvIe82+aS3c9S7bvy4A8pAy3LPoKZdjfu2HR5Gls L27dE/5K4mSNFtFSxQG3hhmzRfiAmk6ZinyZZm/olbzyY/wE88+kTWgatDmheFNBMCCXru 0ohOrWbf50mbYY2GGyaIITG69yujlIOo6yATKl+9MRVVeIqSjlYLRZXQPlttMg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1670438257; a=rsa-sha256; cv=none; b=KMQQZVLAbP9xc3hL8fmTfFUsnBJfMijsMSEqLpkU0Se4qIrzVEh8pWANNvHcAuOrdeaT0I 49vZrFQ0nRT3+qgR/uhrB7F74UKogN/5ZwoV98bxCbCP765iFlMgl6SR3QV527pZvnY176 YtPu50HFDaYWZYV9ncsTYXtd334FMQ4aLS7JrW7HAz2wyxBItGmTJhNdFsLkzmRGlUx8C3 QqmjCv9sSlHwkKPGdLPnWVMphS28OnIMT9oL7MtPy7m4UXIrU1ba1hG8hQxVbkS4AWN3AO N3eLxE3mYdFv05X6B9n5BzLk7l1hyly9iOanbMReshR1sebDC4ifq72SCNzr0A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=exLDsT4N; dmarc=pass (policy=none) header.from=posteo.net; 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: -2.16 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=exLDsT4N; dmarc=pass (policy=none) header.from=posteo.net; 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: 2E1F7307C X-Spam-Score: -2.16 X-Migadu-Scanner: scn1.migadu.com X-TUID: Z7nVHtMYDc6S Mark Barton writes: >> On Dec 7, 2022, at 3:53 AM, Ihor Radchenko wrote: >> >> What about setting org-element--cache-self-verify to nil? > > (setq org-element--cache-self-verify-frequency nil) > Update clocktable > Wrong type argument: number-or-marker-p, nil > > Try again but use zero instead of nil... > (setq org-element--cache-self-verify-frequency 0) > Updates in 11s. Sorry, I meant (setq org-element--cache-self-verify nil). In any case, the time is back to previous, which should be good enough considering that no optimizations have been made to the clock table calculation. If you need it, you may run M-x profiler-start cpu , run clocktable, M-x profiler-report M-x profiler-report-write-profile, and share the resulting profile. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at