I have recently switched from Xe(La)TeX to Lua(La)TeX 1.0.4 (TeX Live 2017) in order to use font expansion feature of
As a result, my compilation time increased dramatically. I confirmed that performance decrease is caused by LuaLaTeX itself, as removing
microtype package doesn't speed the process.
For medium-size document (about 300 pages) I went from 1.9s compilation time with XeLaTeX to 4.2s seconds with LuaLaTeX.
It wouldn't it too bad if I run it only a handful of times, but I am doing manual adjustments to page breaking and hence I need to run it very frequently.
If I run LuaLaTeX only on 1 chapter (10 pages or so), I get PDF in 1.4s.
Is there any way to tell LuaLaTeX to only generate few pages around last edit point, or only a chapter in which edit took place? Ideally, it would preserve earlier part of the PDF file, so that pages do not move in PDF viewer, but anything after currently edited chapter can be ignored.
Additional information based on comments:
- I am using Ubuntu 14.04 LTS 64-bit.
- In case it matters, I edit my source files in Sublime Text 3.
- I am not using cross-references or any "interactive" elements, which might affect or be affected by pagebreaking. Just plain, literal text.
- For chapter headings I am using
\chapter*with chapter numbers written manually.