From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 2CUmCYwYLWOXiwAAbAwnHQ (envelope-from ) for ; Fri, 23 Sep 2022 04:23:08 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id 4JjiCIwYLWMBAwAAauVa8A (envelope-from ) for ; Fri, 23 Sep 2022 04:23:08 +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 CB66B17AD7 for ; Fri, 23 Sep 2022 04:23:07 +0200 (CEST) Received: from localhost ([::1]:50198 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1obYLK-0003OQ-4H for larch@yhetil.org; Thu, 22 Sep 2022 22:23:07 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54030) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1obYKD-0003Nw-3Z for emacs-orgmode@gnu.org; Thu, 22 Sep 2022 22:21:57 -0400 Received: from mail-pj1-x102d.google.com ([2607:f8b0:4864:20::102d]:56189) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1obYKB-0003qT-CW for emacs-orgmode@gnu.org; Thu, 22 Sep 2022 22:21:56 -0400 Received: by mail-pj1-x102d.google.com with SMTP id fs14so11569216pjb.5 for ; Thu, 22 Sep 2022 19:21:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:from:to:cc:subject:date; bh=B+GLgHZZ0C8AN9CcClF60o86KCe7o3YIeKpCPdhCTAA=; b=QY1oaGdS1ZK9dO0OKqrbntG8r4BQ1LlXzMz0OPEIMohiJ/DBDKd66UIzdwDL3RtrsA K4ueGBmqKNJjqNfzO/b6ZiQW4bKdHORb4nzV4LlPwknhHXIX+5voWQNY045RP6Sb4uG6 /Gkxr+AVoRbcvWlXzX0PNuN0zVq0LeymZAEOeMP4d6XHGjDwL/ZGEfct3zZkimIaS/jf z1Tjwi0Cc6I2+CUx4KfIS2oNwPkXj4o0CIfBeOSSFPX6D6Js94DXzWKykWgtvd3xj7i/ TjPYQArACBmrHeZZlTSSqL7/HK1wwlVwXNQ9QN32D9F+dx3voUyWn4W2SkCh3fed0sNd s83w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:x-gm-message-state:from:to:cc:subject:date; bh=B+GLgHZZ0C8AN9CcClF60o86KCe7o3YIeKpCPdhCTAA=; b=EzkH2N4RJ7o+0d1cQPRw6q7X70yvKS4wyYxsmkpXQ2TsUE9oJMu01CxCE9guUFPlCN 8qmG453u7IGUWqVmyAygQyMqBj2mWPVjUhvos+itYOnfdp7t5vZkzLEPnUQA+1c9gZPa K+J7R09ZbyjRhX+YpG0YudKZ4ZPunbSUEHWZSZ/KDSMparDXRfIH7p3be0RLhktaSH06 32b3S7uKX/d5g22v9WG8DbZo9qeggizjoa5+oJDGKNN45XPJLuGMPQD6pmu+x1RpibUF Qn2eQCx1rlITVuO+VbNzqI4VAD29Ai0R1j5KueAIpVAgjkl/OM7yHmcN9xich5DvoZGS Knbg== X-Gm-Message-State: ACrzQf37PDQ80M+qIp6CWtSycaHjpUZRw9kwL3NQzuT+qKwcgvtw0UkO +umQJHbhqVBPUCw8aOy+NkudEmlCk8M= X-Google-Smtp-Source: AMsMyM6W5xUMh5U2MubqWhXXtcesfiuzkmxnSniX3PJz7rV+kOfD5WbU6APzLfUhkDc1wPwHVPjwOA== X-Received: by 2002:a17:902:7c8f:b0:176:cdd8:7258 with SMTP id y15-20020a1709027c8f00b00176cdd87258mr6048590pll.49.1663899713895; Thu, 22 Sep 2022 19:21:53 -0700 (PDT) Received: from localhost ([1.83.154.224]) by smtp.gmail.com with ESMTPSA id t15-20020a17090340cf00b001754a3c5404sm4627162pld.212.2022.09.22.19.21.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Sep 2022 19:21:53 -0700 (PDT) From: Ihor Radchenko To: Max Nikulin Cc: emacs-orgmode@gnu.org Subject: Re: [PATCH] Babel evaluation: location and timing information In-Reply-To: References: <87edw9z81n.fsf@tec.tecosaur.net> <87pmfn99fc.fsf@tec.tecosaur.net> Date: Fri, 23 Sep 2022 10:22:45 +0800 Message-ID: <87v8pe96dm.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::102d; envelope-from=yantar92@gmail.com; helo=mail-pj1-x102d.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.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" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1663899787; 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=B+GLgHZZ0C8AN9CcClF60o86KCe7o3YIeKpCPdhCTAA=; b=lDlfgLO6CovnTB7AJgOzKW/yhPo365+kQbj0YQP6wjbaBrtHas9OIII/Dl0+/9hXbY9WNI 7Zy/wTKDKMaaxC87dbLNQlYnZt7KRUj85JieJI1IjpQD1+d0AxWYf4HmYS0UdYhF6CQduE FZKqt7EFSKAWPpbEHBVypXPRxdTfNWTgid0d46d2umxlTi38Ec33+1iop2fPDQY0e1dv9r 0813oZWkdoNd/E6i9wEq6MxinZpSzx60Y1/Ec4Y+GUqS6ekA7ERzNgE4S1nK6U5UJqPBks RS0kK1ktmputZhJjMKcEGE6uknMmB7HAqlcWtRLSd0/MPvUveYD0YyUICzBydw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1663899787; a=rsa-sha256; cv=none; b=JsDxOLVFbKLcUhVkfSnK349v11zpVSsPfyXg18mgm4SfiGcQ/Xh4zHnxfqSkrLgctVTNca y3WpJg+OaYxulDXWK8lBhMhks2/h/FS2bwmYiOep0Ax79/56sqbcuIG0gsUHPofxLmuGeB J0xEyniKVB2j4mLbLEYD1czEFWa78ajQLvPcENN4ahN4yn7YklMXI8XHflTRQQ3oexggT2 W96c4dE8oMdOcV4NIC2jUMZIkSCIke0c/SrUKUtpkyYxhsil6sqrVBZR/2fqafSH4VDW13 AZKQuhwSVC+T5WDAzCsVJX25brSmAzq2gxSm2mCPnpLMM3BzNkMHRf4QX6Xd1w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=QY1oaGdS; dmarc=pass (policy=none) header.from=gmail.com; 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: -8.45 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=QY1oaGdS; dmarc=pass (policy=none) header.from=gmail.com; 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-Queue-Id: CB66B17AD7 X-Spam-Score: -8.45 X-Migadu-Scanner: scn0.migadu.com X-TUID: cwbg9L6uxsg4 Max Nikulin writes: > While I work with my notes file, performance degrades after some > operations. E.g. searches become significantly slower after caching > refile targets. Previous discussion of the issue: > Ihor Radchenko. Re: profiling latency in large org-mode buffers (under > both main & org-fold feature) Sun, 27 Feb 2022 14:43:29 +0800. > https://list.orgmode.org/87y21wkdwu.fsf@localhost > > My experience is that e.g. emacsclient with particular line causes > several seconds hang. > > Despite improvements since Emacs-26 in line counting, still I believe > that the `line-number-at-pos' function may still be excessively > expensive in real live when unconditionally used just for a bit nicer > logging. May I ask if other Org operations are also slow in that problematic file with many markers? If so, I do not think that we need to worry about performance of `line-number-at-pos'. Rather we just wait for Emacs to fix problems with markers. See the discussion in https://yhetil.org/emacs-devel/jwvsfntduas.fsf-monnier+emacs@gnu.org -- Ihor Radchenko, Org mode contributor, Learn more about Org mode at https://orgmode.org/. Support Org development at https://liberapay.com/org-mode, or support my work at https://liberapay.com/yantar92