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 OA4DFoJ+2mMQdQEAbAwnHQ (envelope-from ) for ; Wed, 01 Feb 2023 16:00:18 +0100 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 4BjTFYJ+2mOhDQEAauVa8A (envelope-from ) for ; Wed, 01 Feb 2023 16:00:18 +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 170111D0B8 for ; Wed, 1 Feb 2023 16:00:17 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pNEaY-00046N-Aa; Wed, 01 Feb 2023 09:59:54 -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 1pNEaU-00043I-8d for emacs-orgmode@gnu.org; Wed, 01 Feb 2023 09:59:50 -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 1pNEaS-00016l-7a for emacs-orgmode@gnu.org; Wed, 01 Feb 2023 09:59:49 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 328E924083F for ; Wed, 1 Feb 2023 15:59:46 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1675263586; bh=Uqs+9WB0JItLFb7WrA9wyBuVXApUTdN7fUJlGnzRUDE=; h=From:To:Cc:Subject:Date:From; b=IHpJqpFEx4MWn6bNvV/8wkZgnWFT8697qs+mqWIyXMsKR9sXFsUeWRzmfNppz82nw plLhzCAB40At0lrwANix3gCd41yB512fPNO996BTAxZ43avOyYxEr1nEazWD9T/85X BVkkeYGhQZG5oYWzpPwGjKZyYF0iMFebJCUJimEFpGpOUA65SNukT6qy+qFVP0R+vi XOvRWpGq9ttvj0ezt462mlEbXUyt/Nu+fWJ0uplvUcVE1DOL5h2ZGcM18uSeH7Hj9k 24u2uk5yq/Xso6Sxs51JR+XliSARLxpqxf9xtIkj2TUfmYnue8DDVUuH4sQ/3a4pRP MYccgp2IQjROQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4P6Q7P0p8Tz9rxT; Wed, 1 Feb 2023 15:59:44 +0100 (CET) From: Ihor Radchenko To: Tijs Mallaerts Cc: emacs-orgmode@gnu.org Subject: Re: org-clock-sum-today performance In-Reply-To: References: Date: Wed, 01 Feb 2023 15:00:20 +0000 Message-ID: <87bkmdjurf.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-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1675263618; a=rsa-sha256; cv=none; b=A6tQA7jh+W7j6Dr6OFee7oe+ne/ZKKYE6N4JovJhDxnrOWiZFImWR8QKb6VwwDKKuetnxn cNgexF0cWWTXjS2ADpO5sN2knaEWWeVXRXXje1sEfxKoZJEQm/xt8bS1efJsVHczSVm+Vl e9+4W7OurBmxYmcGv045TQjYIHmPcwufDmfIUxnZrDVJqk55tH1z7sqzQE5WGzQw0TURVw +2q/+aUUHdpzrmaLT7DXPVq9THwVFeuxPuC78Z5Nqn1a/XP6JupjRBt2eblxiXoPn4QXDG 359CiE+/StzR4lSNXxli2mDksPr1f/g2K5EaaIYWjfe+WbAfHXSerLLenJl5ZQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=IHpJqpFE; 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"; dmarc=pass (policy=none) header.from=posteo.net ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1675263618; 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=z5drK33NLRiUU5yhbLOtMGF7okgdTtSEAR7W/hTGUCI=; b=nvdRFmSTGqsa/iN6EuciUaiFEb0KMymiYwEePyq2tE/8QN2Gh/Q9Iufr3RmqF50gnwYYUo vN4+mzx8FfHrlMCTZb6jcc7j+a9B7qS8MtvjkVLAyZENDeLtCONV7Qr66RQ7+uNFr0G6a6 tslJIRVWKR4MU6YkZumMGwnuCSHkN8z9JljtvXtXW6nZsQMxa+aav2mqL+V8vhnPeta7OT GtImhTWtydpV1wPC4/IPUNy5hYZ7BH5bEDmxh+efV64CGaL8my163N/BscRenbOAvVjj0Y B7yY8Mfw5M/ABg16lkhffO+Wj4ZXoKnK8n9rRlArxBCwKDvHCFrHOiHOfZ+jQg== Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=IHpJqpFE; 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"; dmarc=pass (policy=none) header.from=posteo.net X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: -4.54 X-Spam-Score: -4.54 X-Migadu-Queue-Id: 170111D0B8 X-TUID: 423WDT3uw6W1 Tijs Mallaerts writes: > After building emacs from the master branch (with Org mode version 9.6 > release_9.6-81-g563a43) I noticed the org-clock-sum-today function takes > much more time compared to my previous emacs build (with Org mode version > 9.5.4 release_9.5.4-19-g4dff42) in a large org buffer. > > Are there any settings that could speed up the calculation? May you please 1. run M-x profiler-start cpu 2. Run org-clock-sum-today 3. M-x profiler-report 4. M-x profiler-report-write-profile 5. Share the saved profile -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at