From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 2DK6K0YW62CasAAAgWs5BA (envelope-from ) for ; Sun, 11 Jul 2021 18:03:18 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id IHRdJ0YW62DGZAAAB5/wlQ (envelope-from ) for ; Sun, 11 Jul 2021 16:03:18 +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 2ACB32DA19 for ; Sun, 11 Jul 2021 18:03:18 +0200 (CEST) Received: from localhost ([::1]:52972 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m2bvJ-0001wB-94 for larch@yhetil.org; Sun, 11 Jul 2021 12:03:17 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44220) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m2bsK-0006lw-Q5 for emacs-orgmode@gnu.org; Sun, 11 Jul 2021 12:00:12 -0400 Received: from mail-wr1-x430.google.com ([2a00:1450:4864:20::430]:45717) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m2bsI-00039t-8a for emacs-orgmode@gnu.org; Sun, 11 Jul 2021 12:00:11 -0400 Received: by mail-wr1-x430.google.com with SMTP id t5so7179651wrw.12 for ; Sun, 11 Jul 2021 09:00:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version; bh=FxjNHRt08BgdCcIQaon7tCeFcMnd8qUYnYIDzzGDz2M=; b=un/ACOsXyEYgABYj6ASEsX7GYikJokOmTnZGPQo/WMqGqcBExOFLPeHrA+2fFxmXPT 6mfI5iKGqLT7r1+D8p8kJFmTcGcqmBUki5GvMNpaZVEwMarUg3mTL0Wet+moFsAwmXrJ XVu+8JkJJKqW6yGopL0sgv8jkgsvIBa6tB1rFHY87tEMjgddT0rftQHWUTRAX0lx0rrQ np8JVI9qS6e2HTH1TuMOv7X278SMoUppdfBOQuyQ4fyVypTJlMX+p8o+jZe6aJkO5S+n PTDfNkNvc5LCDbzmHS+wqObARu6xfxmSPfLghjManbxGXDLk1zU2BlQtMVmJP1h9V0aV a7rw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version; bh=FxjNHRt08BgdCcIQaon7tCeFcMnd8qUYnYIDzzGDz2M=; b=qJnyn7qAceb2RbRR0XipVJ0zgO8k6qJN3uDYzqpeFZrZSpvTZacW72SSW39/yhRuPr hGPsuBTxBXq5rzIFit0j5Oul+qBkCQhhlKyJVK1fFm/XTXb1Hf2PM+pj0J/XOesGVEOI hAOkKZ72l38QmV7ZCbB1dTpPfZFzilJ9nk6Tv07ITJqgFN9ofFHNoKbp88N5sKO2v6X5 sJWHp1jJ3YMgrUAgzJMxpN0Oz1dxIa7pSinugAoubOZNwAxymg6sxFCvvqWdBs6ax3rt mErMBB6bogpKcjtb0Gen8ITb5fEfl0ygZqa1I47wfRiFZP4xMkaUYqY4nT4/O8S2VTEh 5gAA== X-Gm-Message-State: AOAM531GUWVTZkatYP2NHjZFA4v7hB8nKd/ZggQlKT8RK0BrRpzlhL7b 6gIrDRqOxfpqN4F24RAYOl8= X-Google-Smtp-Source: ABdhPJw/ZhxkWk2im2KYqliEMQuIDC5iGhh9hA6joup6h1CNB8Q1O8lTdTqQwXFZWrXN8QA9V1gkJQ== X-Received: by 2002:adf:cd86:: with SMTP id q6mr52207520wrj.422.1626019208628; Sun, 11 Jul 2021 09:00:08 -0700 (PDT) Received: from localhost ([158.255.2.9]) by smtp.gmail.com with ESMTPSA id m4sm3783483wrs.14.2021.07.11.09.00.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 11 Jul 2021 09:00:07 -0700 (PDT) From: Ihor Radchenko To: Maxim Nikulin Subject: Re: [BUG] org-goto slows down org-set-property In-Reply-To: References: <87lf6dul3f.fsf@localhost> <87wnpxj5iv.fsf@localhost> Date: Mon, 12 Jul 2021 00:00:08 +0800 Message-ID: <874kd0u9h3.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2a00:1450:4864:20::430; envelope-from=yantar92@gmail.com; helo=mail-wr1-x430.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 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, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: emacs-orgmode@gnu.org 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=1626019398; 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=FxjNHRt08BgdCcIQaon7tCeFcMnd8qUYnYIDzzGDz2M=; b=h+Rb4260VKIH017l9vnJ8kqXTYRdfhMH/MYNkA8A6O2S05XnBEYgxKf67Yc0xAPYYEKM8e xiKf9eH+Ljt+OX1H8A5JSQiVM/ZO1+FEDy/AN/cGCmkiKflsizF/w2YwaYrW031sKbzQrE IAGC18lvpBLFw90XGwyLrvS/p2Nvp1G1qCje4VIBdcenWMbhxM9mHlgsq6ndURnt/XuXxj Lsygj1CUN+GF9c2a/Ly1TWYcUDT3uLEFEk1xtiSrewULqhFvPbXa/UHje1kSscDY0RwZQa +jBQzy4FKpgp/+iRxFzcyD+HB6MN21PJZnOn8ZO5K19GlGryWUqptyeE0s2F0Q== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1626019398; a=rsa-sha256; cv=none; b=O+gaCv2FU49EBFCR1O/z4IQ6CeRjWVyHSewCwVb28acGlT8bi3fi5h96KpWVi8eDUkjjlx OThXHLCPTHtk1+84N25TL7uFB0kited2QFBgaaohEhbGQ+2EIKeZaVqsSvjZAxYoBh20Cr fV7UXOWMoRPVJ3ywaAeH+BOZZn8sIzGKqmojSsAxoRi+ONQfo54OEl3c2i4k19An+iPzpX 7bqQigKYVQhEluSwgQtD4FesbMaHI/iUc7KuGeTXLtFtpcnttdMUtzsSKuFaNm2Yi1P4el vRiEo/BP2dCOCmgSdDTTiPvmgpsBdrvZHIthfwmLpUyJMl9CA4nxTePaZxeKwQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b="un/ACOsX"; dmarc=pass (policy=none) header.from=gmail.com; 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: -2.60 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b="un/ACOsX"; dmarc=pass (policy=none) header.from=gmail.com; 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: 2ACB32DA19 X-Spam-Score: -2.60 X-Migadu-Scanner: scn1.migadu.com X-TUID: DsQEwa3LVoZR 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: #+RESULTS[b9f5ebaf91a21d8da95b8840c70f6d9aeb2ab3ae]: | 9.4.4 | | | | | nm-tst | 5.572397445999999 | 38 | 1.0039881250000002 | | org-refile-get-targets | 13.029634993 | 53 | 1.3204672779999997 | | nm-tst | 24.142289434000002 | 25 | 0.7106094290000002 | | org-refile-cache-clear | 0.00502349 | 0 | 0.0 | | nm-tst | 5.043277087 | 38 | 0.8292470489999997 | 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): #+RESULTS[e5ee2bee7b348265a19834d5ca2697618a9bf261]: | 9.4.6 | | | | | nm-tst | 10.106726732 | 34 | 3.0993166650000004 | | org-refile-get-targets | 5.721277742000001 | 19 | 1.6862241439999996 | | nm-tst | 22.056917422 | 33 | 3.000191514999999 | | org-refile-cache-clear | 0.001498722 | 0 | 0.0 | | nm-tst | 10.066160733 | 34 | 3.203417302 | 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? > P.S. Maybe generating of custom IDs automatically is a viable idea. > Before I have not considered such variant believing that they would be > noticeably longer and would have weaker associations. Some examples of autogenerated IDs using bibtex-autokey: du-2021-recen-studies-in-mechan-proper-e4d Youtube-veritasium-2021-you-cant-prove-every-thats-true-346 schuh-2005-quant-insig-into-disloc-nucleat-a1d Karl-Voit-voit-2020-draft-workf-advan-projec-manag You can judge for yourself if it is too long or not. Also, the length can be customised as described in bibtex-generate-autokey docstring. Best, Ihor