From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id OLmVLWBZ7GAJaAEAgWs5BA (envelope-from ) for ; Mon, 12 Jul 2021 17:01:52 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id 2JdNKWBZ7GAFCQAA1q6Kng (envelope-from ) for ; Mon, 12 Jul 2021 15:01:52 +0000 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 ADF2512CED for ; Mon, 12 Jul 2021 17:01:51 +0200 (CEST) Received: from localhost ([::1]:39228 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m2xRO-0007bm-Mm for larch@yhetil.org; Mon, 12 Jul 2021 11:01:50 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50496) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m2xPY-0007Y3-NE for emacs-orgmode@gnu.org; Mon, 12 Jul 2021 10:59:56 -0400 Received: from ciao.gmane.io ([116.202.254.214]:45188) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m2xPX-0004wL-9Y for emacs-orgmode@gnu.org; Mon, 12 Jul 2021 10:59:56 -0400 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1m2xPT-0005Y0-6S for emacs-orgmode@gnu.org; Mon, 12 Jul 2021 16:59:51 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: emacs-orgmode@gnu.org From: Maxim Nikulin Subject: Re: [BUG] org-goto slows down org-set-property Date: Mon, 12 Jul 2021 21:59:46 +0700 Message-ID: References: <87lf6dul3f.fsf@localhost> <87wnpxj5iv.fsf@localhost> <874kd0u9h3.fsf@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 In-Reply-To: <874kd0u9h3.fsf@localhost> Content-Language: en-US Received-SPF: pass client-ip=116.202.254.214; envelope-from=geo-emacs-orgmode@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: 13 X-Spam_score: 1.3 X-Spam_bar: + X-Spam_report: (1.3 / 5.0 requ) BAYES_00=-1.9, DKIM_ADSP_CUSTOM_MED=0.001, FORGED_GMAIL_RCVD=1, FORGED_MUA_MOZILLA=2.309, FREEMAIL_FORGED_FROMDOMAIN=0.248, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.248, NICE_REPLY_A=-1.479, NML_ADSP_CUSTOM_MED=0.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1626102112; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=16l8l8vpu727H9vkKK+rfaLDCVzynDAjsHOqxLr9F/M=; b=Icvh8LGJ3oL1Q8AUwSGPLSJBmmM/Lm+x37/3IUGtgbI9RqNsvfUa1cda1C/4Yp6VxbrRd1 rUImh/Edf8rChYCLUd39dG2iVJgVFkNANI+36O0pX/SbVXKdgLHT/6cZu9kSKYKR91x5fh 3cVzhIXkMuZmj1sGRbOisGtJUVlDF+3ek43YNoiJx0xXVwAUp6DZ0y/u9qo3wukRfK8sP7 DyVOniVe4AOB3Gqi7qzgbAw7iuHSOHm2uitlmuFdODFtVlrNSpw2YQaugUB9paPPBie9y8 rgiHgCKHFe5z7gw+ePJIOcqCwOBxCiwXCrWG09XT/UOCS95I0GU+4lOAk1e+ag== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1626102112; a=rsa-sha256; cv=none; b=lDwdc/mps53pVv30WZkwjbSSSj38lt7MG6IEWS8M7teCxgkvdI7+hTz3ZmdOL/1CMHzkFq JaZEvJE1Gn7pN32kIt+bB0DF+mEt0ZU+aWSE861lqzmOK3iGOMU03ny2Nuk9hKbRrTH0wK 00OhLW2gXWUE5sQp2xIX/ZBxPDjFazy4rZ7P/gaYUzl6/iiD7a46IVR/pQeqQFkS6idHBM Uj1s0CLV3co7053BGV9kafgB241TVWQgzauKURjfext9OXJGS4mTwVIRqtbzrctSFCvOQB hIJVDq1a308YbtycM2jLU42xRCMMfxIrhizBVe/l0yGdyNm9rJxUvKlf/DWPiA== 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@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -1.80 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@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: ADF2512CED X-Spam-Score: -1.80 X-Migadu-Scanner: scn0.migadu.com X-TUID: 21AhX98zn9BU On 11/07/2021 23:00, Ihor Radchenko wrote: > Maxim Nikulin writes: > >> Ihor, did you get that numbers using emacs -Q? If not, I suspect you may >> have twice more markers in the buffer than `org-refile-get-targets' >> usually generates. If my guess is correct it may be necessary to file a >> bug that org-ql or some other package abuses markers by generation to >> much of them. > > With emacs -Q things are twice better, though still not good enough: ... > org-ql might be one of the reasons of slowdown. Without it, the nm-tst > after clearing the cache is slightly faster (was 13 sec): 13.8 - 10.1 = 3.7 that is comparable with "emacs -Q" that is 5.3. So contribution of org-ql is not major one, but it is still significant. > However, markers are also created by agendas for example. The last > result is also on fresh Emacs. Fresh Emacs tends to be faster in general. > > Do you know a good way to find out all the markers associated with a buffer? I was going to ask you, but forgot to do it. Perhaps it is impossible by design. (length org-agenda-markers)