From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ken Mankoff Subject: Re: Painfully Slow Export Date: Tue, 12 Jun 2018 21:41:17 +0200 Message-ID: References: <874li8avoe.fsf@surprise.skruttet> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000494e0d056e770890" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41144) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fSp9A-0005X5-N4 for emacs-orgmode@gnu.org; Tue, 12 Jun 2018 15:40:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fSp99-0000Yx-KR for emacs-orgmode@gnu.org; Tue, 12 Jun 2018 15:40:04 -0400 Received: from mail-qt0-x232.google.com ([2607:f8b0:400d:c0d::232]:36926) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fSp99-0000Xe-D1 for emacs-orgmode@gnu.org; Tue, 12 Jun 2018 15:40:03 -0400 Received: by mail-qt0-x232.google.com with SMTP id a18-v6so169644qtj.4 for ; Tue, 12 Jun 2018 12:40:03 -0700 (PDT) In-Reply-To: <874li8avoe.fsf@surprise.skruttet> 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" To: a@xkqr.org Cc: Org-mode --000000000000494e0d056e770890 Content-Type: text/plain; charset="UTF-8" Hi Chris, Thanks for the hint. I didn't think to profile. This may be useful, but I'm not sure how to interpret the results, which are: - command-execute 15852 79% - call-interactively 15852 79% - funcall-interactively 15666 78% - org-export-dispatch 15392 77% - org-latex-export-to-latex 15291 76% - org-export-to-file 15289 76% - org-export-as 15245 76% - org-babel-exp-process-buffer 14762 74% - org-babel-exp-src-block 14676 73% - org-babel-exp-do-export 10049 50% - org-babel-exp-results 9324 46% - org-babel-expand-noweb-references 9200 46% - org-babel-get-src-block-info 8247 41% - org-babel-params-from-properties 6799 34% - org-entry-get 6618 33% - org-entry-get-with-inheritance 6579 33% - org-up-heading-safe 5466 27% On Tue, Jun 12, 2018 at 5:09 PM Chris wrote: > Hello, Ken! > > Ken Mankoff (mankoff@gmail.com) 2018-06-12: > > Is there a way to speed up exporting? > > I may be jumping to conclusions here, and if so, please excuse me. Have > you tried profiling the export? (As in M-x profiler-start, run the > export, then M-x profiler-report?) This can shed a surprising amount of > light on why things are slow. (In my case, exporting was slow because of > a slow hook that got triggered multiple times during the exportage.) > > Regards, > Chris > --000000000000494e0d056e770890 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: base64 PGRpdiBkaXI9Imx0ciI+SGkgQ2hyaXMsPGRpdj48YnI+PC9kaXY+PGRpdj5UaGFua3MgZm9yIHRo ZSBoaW50LiBJIGRpZG4mIzM5O3QgdGhpbmsgdG8gcHJvZmlsZS4gVGhpcyBtYXkgYmUgdXNlZnVs LCBidXQgSSYjMzk7bSBub3Qgc3VyZSBob3cgdG8gaW50ZXJwcmV0IHRoZSByZXN1bHRzLCB3aGlj aCBhcmU6PC9kaXY+PGRpdj48YnI+PC9kaXY+PGRpdj48ZGl2Pi0gY29tbWFuZC1leGVjdXRlwqAg wqAgwqAgwqAgwqAgwqAgwqAgwqAgwqAgwqAgwqAgwqAgwqAgwqAgwqAgwqAgwqAgwqAgwqAgwqAg wqAgwqAgwqAgwqAxNTg1MsKgIDc5JTwvZGl2PjxkaXY+wqAtIGNhbGwtaW50ZXJhY3RpdmVsecKg IMKgIMKgIMKgIMKgIMKgIMKgIMKgIMKgIMKgIMKgIMKgIMKgIMKgIMKgIMKgIMKgIMKgIMKgIMKg IMKgIMKgMTU4NTLCoCA3OSU8L2Rpdj48ZGl2PsKgIC0gZnVuY2FsbC1pbnRlcmFjdGl2ZWx5wqAg wqAgwqAgwqAgwqAgwqAgwqAgwqAgwqAgwqAgwqAgwqAgwqAgwqAgwqAgwqAgwqA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