From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.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 aCi2E4hLNGOvJwAAbAwnHQ (envelope-from ) for ; Wed, 28 Sep 2022 15:26:32 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id IErcE4hLNGMSnAAA9RJhRA (envelope-from ) for ; Wed, 28 Sep 2022 15:26:32 +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 CB89E1D30 for ; Wed, 28 Sep 2022 15:26:31 +0200 (CEST) Received: from localhost ([::1]:55948 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1odX54-0000Zq-QD for larch@yhetil.org; Wed, 28 Sep 2022 09:26:30 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52398) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1odWsP-0008O1-KC for emacs-orgmode@gnu.org; Wed, 28 Sep 2022 09:13:25 -0400 Received: from mail-pg1-x530.google.com ([2607:f8b0:4864:20::530]:38409) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1odWsN-00061y-LQ for emacs-orgmode@gnu.org; Wed, 28 Sep 2022 09:13:25 -0400 Received: by mail-pg1-x530.google.com with SMTP id 129so10753152pgc.5 for ; Wed, 28 Sep 2022 06:13:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:from:to:cc:subject:date; bh=dmPDZGAt1mNpMGXG2Sa+k/uHZwkjJoyBW05IncJPXV8=; b=K2Wi5QMJVTGORz11lwl9/EwLAgChSwr0z+8BJJxxV09CmQ9ouhzL4mLGiWopn2HwZP Z4dezU8vGeNz715do/SHXzWotYIskr3xRjMlTxFhpVBxpOxTLkkOomLuPkpzeienJPd9 eyla2VXFf+mnkgAsghjTQg8/V/m3C6vaWSdbeV9cJM7Wmjt3/ArxvHz4Mye0iCfeJDXo f9dktzqHzu01xLcU/eEoKszZWBQQvkmuZ1AysxK0LcLIH5UHJf4MO9+LWkGY8qppddbI kJcuXGLG9/EkjM6emaZrq9KmIwiWHFx7l4rIVy6kq3ypb5z1D8EKN+BvuQPb6B3joS4R hFwA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=dmPDZGAt1mNpMGXG2Sa+k/uHZwkjJoyBW05IncJPXV8=; b=H9qiaIyYkzKgQktP4JptDrmpR7DyokJ3fh5PZOwoJEN+9o2dchKwuhluOsZb7a6UQQ pxTTx1v+LeGSkMvVTxRQfnRe/MCkPdS9UsZ1DaCX5nrUUFfIzlIXtncYXKaJnQXbb/Lp 6fQipo5aOnTebOoaYEJynUsaKwbljbdXgQvruJ0yWBOFLbsl133BgGhFrjqUOyJH+JZp 1+pUpvuG8vtfH5SprXrny1a09npm5XNTltEpV9ZNaGeQKHaqfEQLZB537Ynf3RFansNg mt+H9Hy3z2OooXgItElTYOeENkDAQ1bO0908x6DXdeZenjWLAnOyK/UH3bYs6FD5+pP+ 2ADA== X-Gm-Message-State: ACrzQf37gphUQiMFW1SO+2fHPHO1hm1vVKELAZgSvHRsXpfW7wd3ghCb D54Jo7dMdmPWk+/5f/kZx7c= X-Google-Smtp-Source: AMsMyM5QGTTZI5Pb9oULAbgKDrVtC0B84Sg8acW5PSi6KuR4Mvj5Mrx+srQAFTuygB/U1Mxs6I3SLg== X-Received: by 2002:a63:2253:0:b0:43c:c924:e56a with SMTP id t19-20020a632253000000b0043cc924e56amr10718673pgm.122.1664370799526; Wed, 28 Sep 2022 06:13:19 -0700 (PDT) Received: from localhost ([2409:8970:a80:3a4:8ec6:81ff:fe70:339d]) by smtp.gmail.com with ESMTPSA id nk20-20020a17090b195400b00205c68688c1sm1481437pjb.10.2022.09.28.06.13.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Sep 2022 06:13:18 -0700 (PDT) From: Ihor Radchenko To: Rudolf =?utf-8?Q?Adamkovi=C4=8D?= Cc: "Fraga, Eric" , "emacs-orgmode@gnu.org" Subject: Re: The Org mode in the Org Git does not export In-Reply-To: References: <87y1u7peo2.fsf@ucl.ac.uk> <871qrwgptv.fsf@localhost> Date: Wed, 28 Sep 2022 21:14:00 +0800 Message-ID: <877d1nfxpj.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2607:f8b0:4864:20::530; envelope-from=yantar92@gmail.com; helo=mail-pg1-x530.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-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1664371591; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=dmPDZGAt1mNpMGXG2Sa+k/uHZwkjJoyBW05IncJPXV8=; b=NKsxun0lHfPDMUAS0Wn9tN7sfyokClNORF6664/zHwJyBdtawY/4TBA1h3Rfd+YSv5/Khc xavNiYpfcIuSQk49D3iF1cBSfUNmHjmpOmO3QCfDcdug8ufmr8aH07JYDB93AfBQhHfx7p sf+WWRkFbqxzQGzwUre4M5e03Ine0/s4YM11oVZyBDeeL+RIh2M7ROt7ldBS5heSdCmadQ MBE9j7jEEHESF7sAegcStSEzB1QLKMrND16PtROskI9UncFXFzdDtwmgcdwrnjaPnRDqBY 84d5o7+RsCDvd9hXh7CxmAfh0P6MqrFwrsBuETy1BJUwh+McZRnkre9MwX4y6g== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1664371591; a=rsa-sha256; cv=none; b=iuQWq56VDd7+bfZgsBAK66VVyB3TBhIEfWJsOkpXOh/yEdkKSwTtRJpRYjCXYcWaqKbOaO UiGsKCWTIOisWB2NrIa3t/6Je7RCZAWcZlcLMcHx+qRiOFgnYgqhMqlRSz6j+RtacZjOzG xg0l0Twy9g/dwT9YwigATQiFsmW0RIuLqVqlNasqOC8/+5LNHyOut0Lo8cBwcE9hIas12j 4dkiYSB+ItB+occKEXZAhjIjm6REZja5ULv2Ix/C9wLgw7rMagOMLjOcd6aknAPoWwSV5B NzAYmmc3rZIdA4T1PnPKxdL63YCbnnrCfnJyi08mkhf4qtYRV9izb51BkdAxtQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=K2Wi5QMJ; 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: -3.35 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=K2Wi5QMJ; 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: CB89E1D30 X-Spam-Score: -3.35 X-Migadu-Scanner: scn1.migadu.com X-TUID: L8sWz5kmIy1X Rudolf Adamkovi=C4=8D writes: >> Can you >> 1. M-x debug-on-entry org-export--generate-copy-script >> 2. Start export >> 3. Step into the function (use "d", not "c" binding) >> 4. Try to identify which part (if any) is being slow > > FYI: I had to do "(require 'ox)" before this worked. > > I spent about 30 minutes pressing "d". I saw Org sorting some character > encodings in a large number of steps, and then it started doing a large > number of various tasks, spending time in the AVL tree, etc. I have no > idea what else to do. That's quite an involved stepping through. Thanks for your time, and sorry for not being clear enough about what you can do! The basic idea of this kind of test is use "d" to step-in once and then continue with "c" until you run into a long-running function. Then, you restart the process but also "d" into that identified function and again continue with "c". There is no need to dig to the bottom. At least, I expected to know if and individual call to org-export--generate-copy-script is slow and what inside it may be causing the slowdown. In any case, your elp results combined with previous message when you used "c" imply that (1) org-export--generate-copy-script is called recursively; (2) the top-level call is taking a lot of time somehow. This is all very strange. Let's try to approach this problem from another direction. Can you please set org-element-use-cache to nil and org-fold-core-style to 'overlays in your config and try the export again? These are two major new features that are complex enough to cause potential issues. If you see not improvement, we may arrange a screen session for more interactive debugging. > I could not figure out how to step through N times at once for N > 1. I > tried 'C-9 C-9 d' to step through 99 times, but that did not work. The > documentation for 'debugger-step-through' contains just two sentences, > and I do not even understand the second one: > > "Proceed, stepping through subexpressions of this expression. Enter > another debugger on next entry to eval, apply or funcall." Usually, "d" (step-in) is combined with "c" (step through). > (The buffer also contains a header line, with e.g. "Function Name", but > Emacs did not allow me to select and copy it for you.) That's because it is not a part of buffer text. Just like modeline. --=20 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