From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lawrence Mitchell Subject: Re: Exporting large documents Date: Mon, 06 May 2013 17:15:07 +0100 Message-ID: <878v3sxeyc.fsf@gmx.li> References: <877gjnojsq.fsf@Rainer.invalid> <5654CA29-5F6D-4E8B-8B8B-C3609D76D189@gmail.com> <8761z5gw6w.fsf@gmx.li> <707EAAA5-D27C-47B7-9A1E-874C3A375BD9@gmail.com> <87zjwcwc4b.fsf@gmx.li> <877gjfgnl9.fsf@gmail.com> <0F877AB5-D488-4223-B0E7-F11B4B973614@gmail.com> <87ip2xfd0x.fsf@gmail.com> <51878F09.1050904@ed.ac.uk> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:50352) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UZO4R-0007wd-UA for emacs-orgmode@gnu.org; Mon, 06 May 2013 12:15:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UZO4N-0002qB-7A for emacs-orgmode@gnu.org; Mon, 06 May 2013 12:15:22 -0400 Received: from plane.gmane.org ([80.91.229.3]:49300) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UZO4N-0002q7-0t for emacs-orgmode@gnu.org; Mon, 06 May 2013 12:15:19 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1UZO4K-0007q1-BL for emacs-orgmode@gnu.org; Mon, 06 May 2013 18:15:16 +0200 Received: from e4300lm.epcc.ed.ac.uk ([129.215.63.156]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 06 May 2013 18:15:16 +0200 Received: from wence by e4300lm.epcc.ed.ac.uk with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 06 May 2013 18:15:16 +0200 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 Lawrence Mitchell wrote: [...] And here's the profile for exporting the whole of orgmanual.org to latex. You can see that a lot of the time comes from quite "cheap" functions that are called lots. org-latex-export-as-latex 1 415.52740777 415.52740777 org-export-to-buffer 1 414.89446185 414.89446185 org-export-as 1 414.89314727 414.89314727 org-entry-get 362909 377.15499961 0.0010392550 org-export-execute-babel-code 1 248.09360062 248.09360062 org-babel-exp-process-buffer 1 248.08328800 248.08328800 org-babel-exp-src-block 137 243.10403972 1.7744820417 org-export-data 33704 241.13159257 0.0071543909 org-babel-get-src-block-info 3811 241.06197704 0.0632542579 org-babel-parse-src-block-match 3811 239.00537768 0.0627146097 org-babel-exp-do-export 137 238.11539604 1.7380685842 org-babel-exp-code 137 237.68002300 1.7348906788 org-babel-expand-noweb-references 24 237.62374387 9.9009893283 org-babel-params-from-properties 3811 237.29706205 0.0622663505 org-entry-get-with-inheritance 99086 234.87738424 0.0023704396 org-get-property-block 322856 121.21322218 0.0003754405 org-macro-replace-all 2 112.94112931 56.470564655 org-element-context 8588 107.43778316 0.0125102216 org-element-at-point 8976 101.79823538 0.0113411581 org-element--current-element 236519 91.414278451 0.0003864986 org-up-heading-safe 263822 84.507423221 0.0003203198 org-element--parse-elements 3113 40.774293673 0.0130980705 org-back-to-heading 1209279 40.394825581 3.340...e-05 org-element-headline-parser 59033 32.808386543 0.0005557634 org-before-first-heading-p 272799 32.791086826 0.0001202023 org-list-struct 8035 20.801415973 0.0025888507 org-element-map 19598 20.466600874 0.0010443208 org-latex-link 341 19.91215084 0.0583934042 org-export-resolve-fuzzy-link 281 19.879402747 0.0707452055 ... Functions taking less than 15 seconds cumulative time elided. -- Lawrence Mitchell