Hi Ihor, another thing:
org-export--write-ouput inserts the output string into a temp-buffer before writing it to file. When exporting to multipage I found out that this imposes a pretty significant performance hit. That's why I write the output string directly to file in my own code. Is it sensitive to set an optional argument to circumvent the buffer insert (or circumvent it altogether)? -- Orm