Hello, Bastien <b...@altern.org> writes:
> Hi Achim, > > thanks for doing the profiling. > > Achim Gratz <strom...@nexgo.de> writes: > >> org-macro-replace-all 2 222.371024 111.185512 > > This one looks suspicious: if the function does what it says, > why does it run twice? If we can spare 111 secs here, that's > already an improvement. I'll have a look at some point but > feel free to beat me on this! It has to be run twice. See comments in `org-export-as': Expand export-specific set of macros: {{{author}}}, {{{date}}}, {{{email}}} and {{{title}}}. It must be done once regular macros have been expanded, since document keywords may contain one of them. IOW it handles macros in #+TITLE and other document keywords. I don't think the second run is as long as the first one, though. Regards, -- Nicolas Goaziou