From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Org mode export from a large file is slow since release 8.3 Date: Sat, 05 Dec 2015 13:26:26 +0100 Message-ID: <87io4dqdxp.fsf@nicolasgoaziou.fr> References: <0E058549-7259-467A-AECC-CA2B0D4BC78A@gmx.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47090) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a5BtI-0004I4-HV for emacs-orgmode@gnu.org; Sat, 05 Dec 2015 07:24:41 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a5BtF-0004D4-DO for emacs-orgmode@gnu.org; Sat, 05 Dec 2015 07:24:40 -0500 Received: from relay3-d.mail.gandi.net ([217.70.183.195]:58516) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a5BtF-0004Cv-7n for emacs-orgmode@gnu.org; Sat, 05 Dec 2015 07:24:37 -0500 In-Reply-To: <0E058549-7259-467A-AECC-CA2B0D4BC78A@gmx.de> (Viktor Rosenfeld's message of "Sat, 5 Dec 2015 03:05:40 +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: Viktor Rosenfeld Cc: emacs-orgmode@gnu.org Hello, Viktor Rosenfeld writes: > I updated from 8.2.9 to 8.3.2 today and now the export has become very sl= ow. Creating an HTML page or a LaTeX buffer used to be instantaneous but no= w 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, alth= ough 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 th= ere 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. IIRC this was fixed in master a few weeks ago. The export process was scanning id:... links outside of the export scope. Regards, --=20 Nicolas Goaziou