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 F7eiNayi7WCt3gAAgWs5BA (envelope-from ) for ; Tue, 13 Jul 2021 16:26: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 mBiwMKyi7WBaQwAA1q6Kng (envelope-from ) for ; Tue, 13 Jul 2021 14:26: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 848CC1305 for ; Tue, 13 Jul 2021 16:26:51 +0200 (CEST) Received: from localhost ([::1]:32888 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m3JN4-0000CY-D2 for larch@yhetil.org; Tue, 13 Jul 2021 10:26:50 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36748) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m3JIL-0000lI-BT for emacs-orgmode@gnu.org; Tue, 13 Jul 2021 10:21:57 -0400 Received: from mail-wr1-x434.google.com ([2a00:1450:4864:20::434]:38886) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m3JII-0001PQ-PI for emacs-orgmode@gnu.org; Tue, 13 Jul 2021 10:21:57 -0400 Received: by mail-wr1-x434.google.com with SMTP id g16so20826259wrw.5 for ; Tue, 13 Jul 2021 07:21:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=andrew-cmu-edu.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=vHFnrKwuTmGlh5UxOV159HaaNy7xkW05cWd+3gcz/iA=; b=DIIcRJ0GjcinGdYlNT/ExhiV6QTkgG7oIgW8xrCyd4VnyswGSlspc4lVpV1mAJ/0u+ i22QVH2v0JCSNkdxFjbQEXpKvFGlXTsBOTUWOTXisVLdoodbw/Fl7YR6JPvs3O7TgVoi KD5TTZYoPEeiVfH3HRz648EagEeCAOIQbv11iWz0+eSulDL/XE4s6MUCtJqVBOHbp8ff 547Kjdu98IITUFffQRSj8vtrvTbKQFddU+LQ3X7dBMTQA6K11utlP14/NwNNFcoQci30 b+ld02++tU2EwjSu/+3bSrZi1fGlxea8+tJSw/h18s259/gb2eNQHqzlsSEZOOD5Bvsw rn5Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=vHFnrKwuTmGlh5UxOV159HaaNy7xkW05cWd+3gcz/iA=; b=HOIlNn+0uE8DGky+vQTWTamAv01oq/ti99iT5BpttWFpTDNtKE5MO3W2sQoRtgDGVM a0q1soj8FKIUX9euBlCqiFe3Gy8FHGfMLssYfR/u/gGAON84oVmzYwDWk9WeG81J7+cy NUzIxfb3dHx67UnfhAugNmtFtJZpaSnglWOlDDfQJrKOmyDKZQC0hTYrzSGSNMyBbeAi 2qM6kyPvht+3ilVazRKCrzhAJYh2QJ1mxEQORHJIE7ize4VZg5Ub8tkp7EWaBMCXYISt IO8VGCHDvDkE40QlVt3ZJF55ev+ZwtYz5nqAfnJJIqDeNZkddcs3Vr4CkAwXdVLzlr1G Fbjw== X-Gm-Message-State: AOAM531WnI0hrS4C+NEZKS3qRxuKWKIzqq1ALIDI8W6jhoVUS+c0kA6y n4VEgtGUFaqf7bclg31jXTInHBhkvtxdIExbk0A= X-Google-Smtp-Source: ABdhPJwu/jT95MfZ2Qj/UjtsEDbzWXXTJhzqwtf8VF+6dbGAbxgVxhvG5Zvq9hENsk9uk9dd0++8c6PWLXj0U1zuv8o= X-Received: by 2002:a5d:4a4c:: with SMTP id v12mr5956845wrs.256.1626186111317; Tue, 13 Jul 2021 07:21:51 -0700 (PDT) MIME-Version: 1.0 References: <87lf6dul3f.fsf@localhost> <87wnpxj5iv.fsf@localhost> <874kd0u9h3.fsf@localhost> In-Reply-To: From: John Kitchin Date: Tue, 13 Jul 2021 10:21:40 -0400 Message-ID: Subject: Re: [BUG] org-goto slows down org-set-property To: Maxim Nikulin Content-Type: multipart/alternative; boundary="00000000000080f95005c701f548" Received-SPF: pass client-ip=2a00:1450:4864:20::434; envelope-from=johnrkitchin@gmail.com; helo=mail-wr1-x434.google.com X-Spam_score_int: -13 X-Spam_score: -1.4 X-Spam_bar: - X-Spam_report: (-1.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.248, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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: , Cc: org-mode-email 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=1626186411; 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=vHFnrKwuTmGlh5UxOV159HaaNy7xkW05cWd+3gcz/iA=; b=PUtE6y+oW4FaFP8CHrFlg4pwioSXrmZVFPHaMuhxWEamZBfBeTBmibQjfma3zeU21UhARO PGpgSVYJ8riWLxGbXT4izovzvbU0fmybyO9tkg5fGuIFG/WTneSsFOdmnMdNwWfLhM4VEb G+oOcfUb/zYCfI+dV7+0jPb5oHk28ZvknA/p09e4onl7EkMTdEsElrix3YQ57pj66+vvtg pAhOxSfQB7fOA+fAbX4hN1KK/boI3Ch2PA6gT+0aQUufXwgkYb7VyVol07E2tdcQSWyy+7 3CWyrqM9x9PyLySlevDs4FmCfeCz37/z8Zxt9qFDsozEFxMdEifzZlWXD642fw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1626186411; a=rsa-sha256; cv=none; b=M8cMEkGM6x9exzekACKj+eSQO2fSh5uGTXYKjenjJAdujnw4WnJwUMcYr1Ne14l6DPma/x YrEbxJ8suOTZgQlee2M8zG9+0vrsKm+tL7YTK/Ey+TvvccIMGDx99pgIXllNGzXcAZprHP yXdSdkC02oSpuU+/YOqzIkjuimqo17PhoaQBlCnxJvkBxGtxt9AF8wJhp08/JnZoVp+vzC dSsaNvdiBtUe40QQWJ/efpv5SkhJNjMJ2BH5R8ijAxwdA7W+MNLjH0VgDfyiksa6NDUANF DpR/RumweOxwCoW/1ddFQ9uLz6DuWeIup/ENZu7pVJxETbQs3S7KkFLWE21L6A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=andrew-cmu-edu.20150623.gappssmtp.com header.s=20150623 header.b=DIIcRJ0G; 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.00 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=andrew-cmu-edu.20150623.gappssmtp.com header.s=20150623 header.b=DIIcRJ0G; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=andrew.cmu.edu (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: 848CC1305 X-Spam-Score: -1.00 X-Migadu-Scanner: scn0.migadu.com X-TUID: lHby8+fgkINp --00000000000080f95005c701f548 Content-Type: text/plain; charset="UTF-8" This link ( https://stackoverflow.com/questions/36926513/are-there-elisp-functions-that-list-markers-in-a-given-buffer) suggests there is not a good way to find all the markers associated with a buffer. John ----------------------------------- Professor John Kitchin (he/him/his) Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 @johnkitchin http://kitchingroup.cheme.cmu.edu On Mon, Jul 12, 2021 at 11:01 AM Maxim Nikulin wrote: > 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) > > > --00000000000080f95005c701f548 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
This link (htt= ps://stackoverflow.com/questions/36926513/are-there-elisp-functions-that-li= st-markers-in-a-given-buffer) suggests there is not a good way to find = all the markers associated with a buffer.=C2=A0

=
John

---------------------= --------------
Professor John Kitchin (he/him/his)
Doherty Hall A207F=
Department of Chemical Engineering
Carnegie Mellon University
Pit= tsburgh, PA 15213
412-268-7803


On M= on, Jul 12, 2021 at 11:01 AM Maxim Nikulin <manikulin@gmail.com> wrote:
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 y= ou 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 f= ile 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 =3D 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 gener= al.
>
> Do you know a good way to find out all the markers associated with a b= uffer?

I was going to ask you, but forgot to do it. Perhaps it is impossible by design.

(length org-agenda-markers)


--00000000000080f95005c701f548--