From mboxrd@z Thu Jan 1 00:00:00 1970 From: Viktor Rosenfeld Subject: Org mode export from a large file is slow since release 8.3 Date: Sat, 5 Dec 2015 03:05:40 +0100 Message-ID: <0E058549-7259-467A-AECC-CA2B0D4BC78A@gmx.de> Mime-Version: 1.0 (Mac OS X Mail 9.1 \(3096.5\)) Content-Type: multipart/signed; boundary="Apple-Mail=_5C145FCD-0871-4D80-87E7-C689950442C6"; protocol="application/pgp-signature"; micalg=pgp-sha1 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52618) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a52EP-0003WL-Pg for emacs-orgmode@gnu.org; Fri, 04 Dec 2015 21:05:50 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a52EN-00067a-2g for emacs-orgmode@gnu.org; Fri, 04 Dec 2015 21:05:49 -0500 Received: from mout.gmx.net ([212.227.17.21]:55316) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a52EM-000678-PW for emacs-orgmode@gnu.org; Fri, 04 Dec 2015 21:05:47 -0500 Received: from kenny.fritz.box ([77.12.226.114]) by mail.gmx.com (mrgmx101) with ESMTPSA (Nemesis) id 0MgGDK-1ZsKMg3ja2-00Ninb for ; Sat, 05 Dec 2015 03:05:45 +0100 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org --Apple-Mail=_5C145FCD-0871-4D80-87E7-C689950442C6 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Hi, I updated from 8.2.9 to 8.3.2 today and now the export has become very = slow. Creating an HTML page or a LaTeX buffer used to be instantaneous = but now takes up to 30 seconds. It seems that this is mostly related to file size. For example, = exporting a subtree from a large notes file (~8600 lines) is very slow = (11 seconds) but if I truncate the file significantly (to ~3000 lines) = the export is faster (<2 seconds), and if I move the subtree to a fresh = file (while still exporting the subtree only and not the file) it is = again instantaneous. It also seems that the maint branch has fixed this problem somewhat, = although I can=E2=80=99t really quantify it, but the problem persists. In the *Messages* buffer, I see a new message that hasn=E2=80=99t been = there before: org-babel-exp process C at line 7982... org-babel-exp process C at line 7998... org-babel-exp process C at line 8024... org-babel-exp process C at line 8064... org-babel-exp process patch at line 8103... org-babel-exp process patch at line 8119... org-babel-exp process patch at line 8132... org-babel-exp process patch at line 8148... org-babel-exp process C at line 8179... 30 unique files scanned for IDs [8 times] Curiously, after trying to debug this issue, the problem went away for = one file but persists for another. I am also able to reproduce this problem with an init.el file containing = only: ;; use own Org-mode installation (setq load-path (cons "~/unix/src/org-mode/lisp" load-path)) (setq load-path (cons "~/unix/src/org-mode/contrib/lisp" load-path)) (require 'org-install) (require 'org) (require 'ox-html) I=E2=80=99m using CocoaEmacs 24.4 (9.0) installed via Homebrew on OS X = 10.11.1 (El Capitan). Any idea what is causing this? Best, Viktor --Apple-Mail=_5C145FCD-0871-4D80-87E7-C689950442C6 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- iD8DBQFWYkZ3kWI06CMxQ0ARAo/BAJ49vVbSsANfEClutJLOx5uZ+ifUbwCfdd8W B60cooNRFsgiS7Ia/p06eR4= =nHSy -----END PGP SIGNATURE----- --Apple-Mail=_5C145FCD-0871-4D80-87E7-C689950442C6--