From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id +MVMMezR+mIgmgAAbAwnHQ (envelope-from ) for ; Tue, 16 Aug 2022 01:08:28 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id yP1KMOzR+mJ1aAAAG6o9tA (envelope-from ) for ; Tue, 16 Aug 2022 01:08:28 +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 58EEB8CF0 for ; Tue, 16 Aug 2022 01:08:28 +0200 (CEST) Received: from localhost ([::1]:54846 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oNjC6-0006aW-Mt for larch@yhetil.org; Mon, 15 Aug 2022 19:08:26 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53552) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oNjBb-0006aO-Qj for emacs-orgmode@gnu.org; Mon, 15 Aug 2022 19:07:55 -0400 Received: from mail-pj1-x1034.google.com ([2607:f8b0:4864:20::1034]:52853) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oNjBa-0000Xv-5b for emacs-orgmode@gnu.org; Mon, 15 Aug 2022 19:07:55 -0400 Received: by mail-pj1-x1034.google.com with SMTP id ha11so8214336pjb.2 for ; Mon, 15 Aug 2022 16:07:53 -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; bh=MlRhfvAoRx+8lu6HRbh5Jip1AVJBnjcFCc7ZHY68tHs=; b=B2jJ2gdXZ5G0DbC6zhDvG9hA4/NDW4e3AOullJe8OJ8NeWDJkXy67sHkxrhuYcfzVX 6AMLMWgIkrHnHYfM0I2ZqXOUGnbHpYiE0d779G08LPsSeLOCgA9emi58qBWysvsvd4R4 8pLNjXtTwMs0seXzOJjXN0UdmnnFEsMFu/Cb+MhcBHVYWcdqXcWsOoET+M0Tj1NEDtLw fu3OzPC5+2Yzu4ekC/Nhn+HXYrzoxSWsd9hlewqaW1PS8RjjJG61aVW/2edl7//w4z/D SKUtbi/fIwaORE1WafvUrUC6vEDS0lvSBFhqMlaE1cz5WGFHIfqcWpembvDrNa8JxDT6 yt9w== 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; bh=MlRhfvAoRx+8lu6HRbh5Jip1AVJBnjcFCc7ZHY68tHs=; b=Ip0cXUu3uOHIDaUTrv3qiA8eKJ5/8WhXb3dwz4DUkLZvHjFDUva+BveaF3iZuBg5XH hdLwg252V9ZRX3co3GULSdKjbpakTo7IdYeq++AppEapmoFb+jnnibOeMgEjLbb2jnAM lupR2LzcI/ERQ1Ir7n5pjQCtvOt+3Iyi9d87gVclFi0uJiNtk6Rqp84GTgnoLhYknBYZ W3zg6glIIG+Q25Md+sx8bBJvuHBIbijPllM2gRIFie7kYbGVyjlecekS6os/MJZGDBab BczYP7o3loc3q1mbWaD6fckWqkJqTf/OW5BjqxG3ppZagaQOiqPnSDqVA0QR8a7HZRPc cmdA== X-Gm-Message-State: ACgBeo0qd0Uak4iocMeNiqycu+ntK4bjQ3eb4uDMp4ioggsa4ukDlKIj Qe28SrSUa7bUCStPj/2Axzw= X-Google-Smtp-Source: AA6agR4oR58VYWHNrEaRvp0jjWeO0y7+lBQ5jLs8BqTOBr2y8FXksHCUdI66cVSw1HBruvfkGEBGvg== X-Received: by 2002:a17:903:404d:b0:16f:86fd:cf5c with SMTP id n13-20020a170903404d00b0016f86fdcf5cmr19125299pla.26.1660604872518; Mon, 15 Aug 2022 16:07:52 -0700 (PDT) Received: from localhost ([2409:8a70:2bf:80b0:8ec6:81ff:fe70:339d]) by smtp.gmail.com with ESMTPSA id n15-20020a170903110f00b0016d22e6ed57sm7526931plh.293.2022.08.15.16.07.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Aug 2022 16:07:51 -0700 (PDT) From: Ihor Radchenko To: Ragnar Groot Koerkamp Cc: emacs-orgmode@gnu.org Subject: Re: Bad save performance on `main` branch In-Reply-To: References: Date: Tue, 16 Aug 2022 07:08:53 +0800 Message-ID: <874jyd14vu.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::1034; envelope-from=yantar92@gmail.com; helo=mail-pj1-x1034.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 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, 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" 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=1660604908; 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=MlRhfvAoRx+8lu6HRbh5Jip1AVJBnjcFCc7ZHY68tHs=; b=etYDwybKlhXmEJHsmQK4SMoySK0jjZXWlPbDDj7wZzb0xSiG1PhlS2WTqynuzXAmIfeE5v bihURwh5UOihBZnppPqvVVhYKMdBlmqCVy4+IHA4ju7B6CspWZ1vEbZ83/SIjIHSIygOzw bZjh2s+0evefG9KhqGGUAeU8tFrGijjPVIaFSOeZiUoix0tJdp2JX0CgO8RZ0uwx6xwJJd YTH7/eAzb4iBxY87tt9N/7Ek3Gggldtpj48KncpriqJYvkk73qEGuCYU3NFQfgSNrUbUDB 7jB1R7CpNwP0Bhn7v69P8xZPuOxXWZPwQGjrjHb2r9DhFlVBgQ1KJzjFXFyRXA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1660604908; a=rsa-sha256; cv=none; b=Jq3FXaYCqKqZ7iLpHmW2WPLT1oNdan8TEnFodYikQxKsnLwOFkGm3OKsXtUVtFtsaTxmV+ MSuF0V+0lF7dBoDxUu4lSQL6R90FfZgLANFZqhYOHutPu1/i+QKNWFvBYVb/BKCim0Rt+U +p2iEc4dfYQBOJAQZ/EYgoysH1InmX9XPFTPam3yPKIvnGon/y59ia4Szc1jpgklAPB1U8 ZqoN6Ae1lR+SMkRorTkoDAPfynmxkX7gTNARfxV7+6IhZcB0lR9CXqAb7piUgYvYlHxNKr ZL2uSFcW2NsXI9G6hcHQ5WhyKqWmHANvuMIh492W5Ki3VhuI2Fve068BOlL/pg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=B2jJ2gdX; 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.36 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=B2jJ2gdX; 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: 58EEB8CF0 X-Spam-Score: -8.36 X-Migadu-Scanner: scn0.migadu.com X-TUID: ms4OeaH8MmbV Ragnar Groot Koerkamp writes: > Steps to reproduce are already in [1], but I hope the profiles below should > give a start at finding the cause of this issue. I am sorry, but I am unable to reproduce anything using the provided .org file. The file contains references to non-existing bibliography. Could you please detail the steps starting from emacs -Q? > org-export-copy-buffer > 5039 64% - # > 4994 63% - org-mode > 4499 57% - run-mode-hooks > 4485 57% - run-hooks This is very odd. org-export-copy-buffer explicitly disables all the mode hooks: ;; Set major mode. Ignore `org-mode-hook' as it has been run ;; already in BUFFER. (let ((org-mode-hook nil) (org-inhibit-startup t)) (org-mode)) -- 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