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 ms9.migadu.com with LMTPS id WAr/ETCuSmSumgAASxT56A (envelope-from ) for ; Thu, 27 Apr 2023 19:17:36 +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 CD3WETCuSmRmQwAAauVa8A (envelope-from ) for ; Thu, 27 Apr 2023 19:17:36 +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 14A4D3DBC0 for ; Thu, 27 Apr 2023 19:17:36 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ps1iE-0004vm-8V; Thu, 27 Apr 2023 09:31:06 -0400 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 1ps1i9-0004vX-Gm for emacs-orgmode@gnu.org; Thu, 27 Apr 2023 09:31:01 -0400 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ps1i6-0005Nj-Ut for emacs-orgmode@gnu.org; Thu, 27 Apr 2023 09:31:00 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 5C44924030A for ; Thu, 27 Apr 2023 15:30:56 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1682602256; bh=G60uFJocqLAGSb7dTKBNHHki8PFrqp9b2/2NB+EMkMA=; h=From:To:Subject:Date:From; b=Ka2+P52J4veWsByX9VBACMrb80336a9ksznCbN94qmIUf5Fw8HIeRdkxoUZ0dwQUv QHmRoK9iWdIUfmqSkTr9PrSLrHxJ47cn0I9XSHB3dxfwzuPSM0VzmXFE3O7zxGkGQD 2yCLvWnLo7dXmR/PJw1ehS+qRZkpFpLkbzIxVOyNwhkYhI/Cz2+gKwUaw+hsYUWqki Z7MEqPQTIcvopoAF0DlGeHNfGggnpkEsFeb+ot/rAkT9y3VnLq/x7M4wiGpnrsuaM4 W0OkhtW74nLsCs+3DLAqEN9SIDRdpfjsH9fSWdr2DbFmuTTGcdzeiKJ+hCdVJL5P35 ICdgwpPqE9M3g== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Q6c7h02ffz6tv5 for ; Thu, 27 Apr 2023 15:30:55 +0200 (CEST) From: Ihor Radchenko To: emacs-orgmode@gnu.org Subject: Re: [RFC] If you use Org 9.6, please share the output of M-x org-element-cache-hash-show-statistics In-Reply-To: <87sfffawfe.fsf@localhost> References: <87sfffawfe.fsf@localhost> Date: Thu, 27 Apr 2023 13:33:50 +0000 Message-ID: <87bkj9o3ep.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.65; envelope-from=yantar92@posteo.net; helo=mout01.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, 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Seal: i=1; s=key1; d=yhetil.org; t=1682615856; a=rsa-sha256; cv=none; b=IQTpoUhd/gkRWgrvIg/WqNN5y4RHDDahVpAL/Ahr/SvPiig3PbFz6xcd9UELm5+xhWzr3V gGOnsuO7QNHLW2OMAlyUI3tTYyby7LLbqtWqKo7tXLZUEkxwKOzECfe0Vi3JWJqmJ1rWSN Pr/4ZqVnFKSJMukheEMjHj56HfOM4oNZc4+Zuy85MwMR/XICObM/PGrNWW8MfMn4QsGcD6 n3ZGiDVw1XXuSeFqTHi6IyPMlQ4fAZ/KMhAwtbItJd4VPK7hqoPQeI3pSCEIgzQT59T23U RPIAGvyTEh7h1YrUNJ3lsDc6ArCKrkEtaA0Siic/p73xkthPgwGQOOQ/2U777w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=Ka2+P52J; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1682615856; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to: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=ob1CDMEKY2DQLDUTkz1YS/v9YXqVODmwrheCGMqXuFo=; b=qW4eHBP0hdv0K5wrNQBUBbDWIghV1SSfTf5u1NdERsUk3MW0wFpwOXETUA9NFLMRClWs91 KtkvBFAaB7wIjBGXc3ELM0aoWJsBAHlL4ZeLpu+wwYS6VT+gXxdeNVVtrTwAti18qPvnWl r4debZ8FwhyVKeMPttQtw4SXaqupyKtuIiY6RDkTFA1gALouNkhR/51n1y40MlXVWs/B7c xYFrNb79Gzf6jYF8tPYtgVoJ8/dyhJA+BKffk54SAw4HganpPA8xr41m+o6kjIXGhTUFe+ v2UwfTQ8EP84fa1UawnDR36TBbfDilw7Q/RJm2wjWlousRPeoK1kTaAtUN4GeA== X-Migadu-Scanner: scn1.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=Ka2+P52J; 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: -4.69 X-Spam-Score: -4.69 X-Migadu-Queue-Id: 14A4D3DBC0 X-TUID: XLZmJbCLWYdE Ihor Radchenko writes: > I would like to assess the efficiency of one of search optimizations used > in org-element.el [1] Thanks everyone for responding! It looks like the optimization is useful at least to some people (20% cached searches is a good thing to have). A number of people also reported significant fraction of cache queries associated with editing (non-hashable). They cannot, unfortunately, be handled by this particular optimization and I have to leave them as is. I am thus leaving the code in place, removing the statistics gathering parts. https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=2bc510217 Done. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at